1
0
Fork 0
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:
Selamanse 2018-05-21 16:14:07 +02:00
parent 0ff5196eca
commit da4f6c8ff7

View file

@ -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