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:
parent
8a76a09290
commit
4814e2cc1a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue