1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update backup

This commit is contained in:
frju365 2019-01-06 13:25:48 +01:00 committed by GitHub
parent 8a76a09290
commit 4814e2cc1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,8 @@ pushd $final_path
mkdir mongo_backup
datebackup=$(date -u +%H%M%m%G)
ynh_app_setting_set $app datebackup $datebackup
pushd mongo_backup$datebackup
mkdir mongo_backup/$datebackup
pushd mongo_backup/$datebackup
mongodump --db $dbname
popd
popd