1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/BicBucStriim_ynh.git synced 2024-09-03 18:15:53 +02:00

Update backup/restore scripts

This commit is contained in:
Luc Didry 2017-05-05 11:19:38 +02:00
parent 848956bd74
commit 041d5fba4e
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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: