diff --git a/scripts/backup b/scripts/backup index 77f61e3..154c3cf 100644 --- a/scripts/backup +++ b/scripts/backup @@ -60,7 +60,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= ynh_print_info --message="Backing up the MongoDB database..." -mongodump --db "$db_name" -o "./dump" >/dev/null +mongodump --db="$db_name" --out="./dump" --quiet #================================================= # SPECIFIC BACKUP diff --git a/scripts/restore b/scripts/restore index 76e0350..d9e4bd0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -103,7 +103,7 @@ ynh_print_info --message="Restoring the MongoDB database..." # Start mongodb systemctl enable $mongodb_servicename systemctl start $mongodb_servicename -mongorestore --db $db_name ./dump/$db_name >/dev/null +mongorestore --db="$db_name" --archive="./dump/$db_name" --quiet #================================================= # RESTORE SYSTEMD