From 32e69ea6eb41051526235d39435ac8b6afa71069 Mon Sep 17 00:00:00 2001 From: matlink Date: Wed, 19 Nov 2014 22:23:25 +0100 Subject: [PATCH] [fix] removing data folder before restoring the backed one --- scripts/restore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore b/scripts/restore index 4e303b2..0ded1d3 100644 --- a/scripts/restore +++ b/scripts/restore @@ -5,5 +5,6 @@ app_path=/var/www/$app save_path=$1 sudo cp $save_path/config.php $app_path/ +sudo rm -rf $app_path/data sudo cp -R $save_path/data $app_path/ sudo chown -R www-data: $app_path/data