diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-26 14:06:27 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-26 14:06:27 +0100 |
commit | 36919fb419a40688daa97e36734f579488cb56e2 (patch) | |
tree | a52a4d7df4d1ea2b1926a722ca2c0de59fc96e25 /lib/tasks | |
parent | 18d827073a3612c88185523af15c7314e465dd63 (diff) |
Restore and Backup fixes.
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/backup.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake index fec3956..d12bf5e 100644 --- a/lib/tasks/backup.rake +++ b/lib/tasks/backup.rake @@ -35,6 +35,8 @@ namespace :backup do system "gunzip < /tmp/gs5_restore_directory/*/GS5/databases/MySQL/gemeinschaft.sql.gz | mysql -u #{db_user} -p#{db_password} #{database}" FileUtils.rm_rf tmp_dir + + system "cd /opt/gemeinschaft && rake db:migrate" end end |