diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-27 06:51:08 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-27 06:51:08 +0100 |
commit | 5053adc7c549830acda4d1218efa76f44e107a8a (patch) | |
tree | f388314768966e948ba28fe9a6a9012ef15d723b /lib | |
parent | 22eb173c74893114350e4b5351a58b48673f63b3 (diff) |
Don't store the fax_thumbnails in the backup. Plus recreate them at restore.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/backup.rake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake index 8e55be2..61c587b 100644 --- a/lib/tasks/backup.rake +++ b/lib/tasks/backup.rake @@ -23,7 +23,7 @@ namespace :backup do # Restore voicemails # - # system "cd / && sudo /bin/tar xzfP #{restore_directory}/GS5/archives/voicemails.tar.gz" + system "cd / && sudo /bin/tar xzfP #{restore_directory}/GS5/archives/voicemails.tar.gz" # Restore the database # @@ -38,6 +38,12 @@ namespace :backup do FileUtils.rm_rf tmp_dir system "cd /opt/gemeinschaft && rake db:migrate" + + # Rebuild the thumbnails + # + FaxDocument.each do |fax_document| + fax_document.render_thumbnails + end end end |