summaryrefslogtreecommitdiff
path: root/config/backup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/backup.rb')
-rw-r--r--config/backup.rb25
1 files changed, 20 insertions, 5 deletions
diff --git a/config/backup.rb b/config/backup.rb
index e5816c1..b50f7a8 100644
--- a/config/backup.rb
+++ b/config/backup.rb
@@ -24,14 +24,31 @@ Backup::Model.new(:GS5, 'GS5 backup') do
db.host = "localhost"
db.port = 3306
db.socket = "/var/run/mysqld/mysqld.sock"
+ db.skip_tables = ["backup_jobs", "restore_jobs", "fax_thumbnails"]
end
##
# Faxes
#
- if File.exists?('/opt/gemeinschaft/public/uploads/fax_document')
+ if File.exists?('/var/opt/gemeinschaft/fax')
archive :faxes do |archive|
- archive.add '/opt/gemeinschaft/public/uploads/fax_document'
+ # Incoming faxes
+ #
+ Dir.glob("/var/opt/gemeinschaft/fax/in/**/*.pdf").each do |fax_file|
+ archive.add(fax_file)
+ end
+ Dir.glob("/var/opt/gemeinschaft/fax/in/**/*.tiff").each do |fax_file|
+ archive.add(fax_file)
+ end
+
+ # Outgoing faxes
+ #
+ Dir.glob("/var/opt/gemeinschaft/fax/out/**/*.pdf").each do |fax_file|
+ archive.add(fax_file)
+ end
+ Dir.glob("/var/opt/gemeinschaft/fax/out/**/*.tiff").each do |fax_file|
+ archive.add(fax_file)
+ end
end
end
@@ -55,6 +72,4 @@ Backup::Model.new(:GS5, 'GS5 backup') do
# Gzip [Compressor]
#
compress_with Gzip
-
-end
-
+end \ No newline at end of file