feat: resotre backups from volume or cloud

This commit is contained in:
Revant Nandgaonkar
2020-03-27 00:28:50 +05:30
parent 754ba8a91a
commit 3a6f7e1934
2 changed files with 181 additions and 0 deletions

View File

@@ -181,6 +181,12 @@ elif [ "$1" = 'push-backup' ]; then
&& python /home/frappe/frappe-bench/commands/push_backup.py"
exit
elif [ "$1" = 'restore-backup' ]; then
su frappe -c ". /home/frappe/frappe-bench/env/bin/activate \
&& python /home/frappe/frappe-bench/commands/restore_backup.py"
exit
else
exec su frappe -c "$@"