From 041d5fba4e551eabc87bc961ac2b70b19c4b62df Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 5 May 2017 11:19:38 +0200 Subject: [PATCH] Update backup/restore scripts --- scripts/backup | 1 + scripts/restore | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index af8ccd9..1282772 100644 --- a/scripts/backup +++ b/scripts/backup @@ -12,6 +12,7 @@ source /usr/share/yunohost/helpers # Backup sources & data # Note: the last argument is where to save this path, see the restore script. ynh_backup "/var/www/${app}" "sources" +ynh_backup "/var/www/${app}_library" "data" ### MySQL (remove if not used) ### # If a MySQL database is used: diff --git a/scripts/restore b/scripts/restore index a83fa6d..0041c7e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -23,10 +23,11 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \ # Restore sources & data src_path="/var/www/${app}" sudo cp -a ./sources "$src_path" +sudo cp -a ./data "${src_path}_library" # Restore permissions to app files # you may need to make some file and/or directory writeable by www-data (nginx user) -sudo chown -R root: "$src_path" +sudo chown -R root: "$src_path" "${src_path}_library" ### MySQL (remove if not used) ### # If a MySQL database is used: