diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-05 17:30:45 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-05 17:30:45 +0100 |
commit | a865b1f9506b900ed8643c01d94c86268e907720 (patch) | |
tree | 62e82c385c9a804a8f32da6f276881ff8c21fc90 /lib/tasks/backup.rake | |
parent | 00db10565a2b1906728087eeb95542214720fb23 (diff) |
Added voicemails and recordings to the backup/restore. #195
Diffstat (limited to 'lib/tasks/backup.rake')
-rw-r--r-- | lib/tasks/backup.rake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake index 51fd2f2..ad4d41d 100644 --- a/lib/tasks/backup.rake +++ b/lib/tasks/backup.rake @@ -41,6 +41,12 @@ namespace :backup do system "cd / && sudo /bin/tar xzfP #{restore_directory}/GS5/archives/voicemails.tar.gz" end + # Restore recordings + # + if File.exists?("#{restore_directory}/GS5/archives/recordings.tar.gz") + system "cd / && sudo /bin/tar xzfP #{restore_directory}/GS5/archives/recordings.tar.gz" + end + # Restore avatars # if File.exists?("#{restore_directory}/GS5/archives/avatars.tar.gz") |