1
0
Fork 0
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:
Jérôme Lebleu 2016-05-07 01:45:56 +02:00
parent c7fa84b860
commit 2dfe7a0bda
2 changed files with 6 additions and 3 deletions

View file

@ -12,6 +12,9 @@
"email": "julien.malik@paraiso.me"
},
"multi_instance": false,
"requirements": {
"yunohost": ">= 2.3.16"
},
"services": [
"nginx",
"php5-fpm",

View file

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