mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
[enh] Update backup script with last helpers
This commit is contained in:
parent
c7fa84b860
commit
2dfe7a0bda
2 changed files with 6 additions and 3 deletions
|
@ -12,6 +12,9 @@
|
|||
"email": "julien.malik@paraiso.me"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.3.16"
|
||||
},
|
||||
"services": [
|
||||
"nginx",
|
||||
"php5-fpm",
|
||||
|
|
|
@ -18,11 +18,11 @@ dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
|
|||
|
||||
# Copy the app files
|
||||
DESTDIR="/var/www/$app"
|
||||
sudo cp -a "$DESTDIR" ./sources
|
||||
ynh_backup "$DESTDIR" "sources"
|
||||
|
||||
# Copy the conf files
|
||||
sudo cp -a "/etc/nginx/conf.d/${domain}.d/${app}.conf" ./nginx.conf
|
||||
#sudo cp -a "/etc/php5/fpm/pool.d/${app}.conf" ./php-fpm.conf
|
||||
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
|
||||
#ynh_backup "/etc/php5/fpm/pool.d/${app}.conf" "php-fpm.conf"
|
||||
|
||||
# Dump the database
|
||||
mysqldump -u "$dbuser" -p"$dbpass" --no-create-db "$dbname" > ./dump.sql
|
||||
|
|
Loading…
Add table
Reference in a new issue