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:
parent
848956bd74
commit
041d5fba4e
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue