summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-05 09:42:12 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-05 09:42:12 +0100
commit75362f4b48f02fc28ac45762bfb6b28a06d38b72 (patch)
treefe72a97849b48489c3f431dd21c7e313f254cce0
parentfbbbb9dfe10ad8b25d075e00f4a149086b7c27a5 (diff)
Fixed the backup.
-rw-r--r--config/backup.rb20
1 files changed, 2 insertions, 18 deletions
diff --git a/config/backup.rb b/config/backup.rb
index 88edd94..0cb6a32 100644
--- a/config/backup.rb
+++ b/config/backup.rb
@@ -32,23 +32,7 @@ Backup::Model.new(:GS5, 'GS5 backup') do
#
if File.exists?('/var/opt/gemeinschaft/fax')
archive :faxes do |archive|
- # 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
+ archive.add '/var/opt/gemeinschaft/fax'
end
end
@@ -81,4 +65,4 @@ Backup::Model.new(:GS5, 'GS5 backup') do
# Gzip [Compressor]
#
compress_with Gzip
-end \ No newline at end of file
+end