mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Address sporadically failing compress
Backup compress may fail due to improper tar cmd. Issue #51 Reference: https://stackoverflow.com/questions/20318852/tar-file-changed-as-we-read-it
This commit is contained in:
parent
0ff5196eca
commit
da4f6c8ff7
1 changed files with 4 additions and 2 deletions
|
@ -25,9 +25,11 @@ domain=$(ynh_app_setting_get $app domain)
|
|||
|
||||
workdir=$(pwd)
|
||||
cd $final_path
|
||||
tar -czf $workdir/rocket.chat.gtar .
|
||||
backupfile="rocket.chat.gtar"
|
||||
touch $backupfile
|
||||
tar --exclude=$backupfile -czvf $workdir/$backupfile .
|
||||
cd $workdir
|
||||
ynh_backup ./rocket.chat.gtar
|
||||
ynh_backup ./$backupfile
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE CONFIGURATION
|
||||
|
|
Loading…
Reference in a new issue