mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Fix back/restore script
This commit is contained in:
parent
ba81af1218
commit
9bbd0c3e6e
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ sudo cp -a /var/www/$app/. $backup_dir/sources
|
|||
|
||||
# Backup mysql
|
||||
db_pwd=$(sudo yunohost app setting $app mysqlpwd)
|
||||
sudo mysql -u$app -p$db_pwd -D $app > $backup_dir/$app.dmp
|
||||
sudo mysqldump -u $app -p$db_pwd $app > $backup_dir/$app.dmp
|
||||
|
||||
# Copy Nginx and YunoHost parameters to make the script "standalone"
|
||||
sudo cp -a /etc/yunohost/apps/$app/. $backup_dir/yunohost
|
||||
|
|
|
@ -9,7 +9,7 @@ sudo cp -a $backup_dir/sources/. /var/www/$app
|
|||
|
||||
# Restore mysql dump
|
||||
db_pwd=$(sudo yunohost app setting $app mysqlpwd)
|
||||
sudo mysql -u$app -p$db_pwd -D $app < $backup_dir/$app.dmp
|
||||
sudo mysql -u $app -p$db_pwd $app < $backup_dir/$app.dmp
|
||||
|
||||
# Restore Nginx and YunoHost parameters
|
||||
sudo cp -a $backup_dir/yunohost/. /etc/yunohost/apps/$app
|
||||
|
|
Loading…
Reference in a new issue