summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-27 10:16:11 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-27 10:16:11 +0100
commit4d6c3cc12ecef9f8c82e448d5ab9fba5fb52ef57 (patch)
tree1a656cb5db2937b8770649a6471ec2486b36e3c2
parent784c1eab8b6b19e00f38aa4a1f50f4ccbe11fc89 (diff)
Delete the archive tar.gz to get more air to breathe.
-rw-r--r--lib/tasks/backup.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake
index 39a4282..21b0fac 100644
--- a/lib/tasks/backup.rake
+++ b/lib/tasks/backup.rake
@@ -25,6 +25,10 @@ namespace :backup do
#
system "cd / && sudo /bin/tar xzfP #{restore_directory}/GS5/archives/voicemails.tar.gz"
+ # Delete the archive tar.gz to get more air to breathe
+ #
+ FileUtils.mkdir_p "#{restore_directory}/GS5/archives"
+
# Restore the database
#
system_odbc_ini_file = '/var/lib/freeswitch/.odbc.ini'