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
115ec86dbb
commit
3b0ad25b61
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ dbname=$(ynh_app_setting_get $app dbname)
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
mkdir mongo_backup
|
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
|
mongodump --db $dbname
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue