Owncloud remote restore
This commit is contained in:
parent
756c1c32e9
commit
4c853944e1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue