mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fixes dump
This commit is contained in:
parent
55cf3a1387
commit
ceca4b6456
1 changed files with 2 additions and 4 deletions
|
@ -26,8 +26,6 @@ final_path=$(ynh_app_setting_get $app final_path)
|
|||
domain=$(ynh_app_setting_get $app domain)
|
||||
db_name=$(ynh_app_setting_get $app db_name)
|
||||
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
||||
bkpdate="$(date +%d-%m-%Y_%H%M%S)"
|
||||
backup_dir=$final_path/backup-$bkpdate
|
||||
|
||||
#=================================================
|
||||
# STANDARD BACKUP STEPS
|
||||
|
@ -47,5 +45,5 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "nginx"
|
|||
# BACKUP THE MONGODB DATABASE
|
||||
#=================================================
|
||||
|
||||
sudo mongodump -o "${backup_dir}/dump"
|
||||
ynh_backup "${backup_dir}/dump" "dump"
|
||||
sudo mongodump -o "$YNH_CWD/dump"
|
||||
ynh_backup "dump"
|
||||
|
|
Loading…
Reference in a new issue