diff options
-rw-r--r-- | config/backup.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/backup.rb b/config/backup.rb index 3bb0d30..0057f01 100644 --- a/config/backup.rb +++ b/config/backup.rb @@ -30,14 +30,18 @@ Backup::Model.new(:GS5, 'GS5 backup') do # Faxes # archive :faxes do |archive| - archive.add '/opt/gemeinschaft/public/uploads/fax_document' + if File.exists?('/opt/gemeinschaft/public/uploads/fax_document') + archive.add '/opt/gemeinschaft/public/uploads/fax_document' + end end ## # Voicemails # archive :voicemails do |archive| - archive.add '/var/opt/gemeinschaft/freeswitch/voicemail/' + if File.exists?('/var/opt/gemeinschaft/freeswitch/voicemail') + archive.add '/var/opt/gemeinschaft/freeswitch/voicemail' + end end ## |