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 2018-03-11 14:04:33 +01:00 committed by GitHub
parent 115ec86dbb
commit 3b0ad25b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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