Owncloud remote restore

This commit is contained in:
Bob Mottram 2016-03-30 09:58:04 +01:00
parent 756c1c32e9
commit 4c853944e1
1 changed files with 222 additions and 220 deletions

View File

@ -706,6 +706,7 @@ function restore_owncloud {
if [ -d $SERVER_DIRECTORY/backup/owncloudfiles ]; then
echo $"Restoring Owncloud installation"
restore_directory_from_friend /root/tempowncloudfiles owncloudfiles
cp -r /root/tempowncloudfiles/* /
if [ ! "$?" = "0" ]; then
exit 1458
@ -715,6 +716,7 @@ function restore_owncloud {
if [ -d $SERVER_DIRECTORY/backup/owncloudconfig ]; then
echo $"Restoring Owncloud installation"
restore_directory_from_friend /root/tempowncloudconfig owncloudconfig
cp -r /root/tempowncloudconfig/* /
if [ ! "$?" = "0" ]; then
exit 2571