mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 18:48:26 +00:00
Remove bz2 extension from backup file when not compressed
This commit is contained in:
parent
178c54a688
commit
062b8922ec
@ -3172,11 +3172,12 @@ doBackup(){
|
||||
#Tar the files and remove the original Backup Directory. Saves about 50MB of disk space per backup
|
||||
|
||||
echo -ne "${NORMAL} Compressing Backup "
|
||||
backupfile="${arkbackupdir}/${daystamp}/${instance}.${datestamp}.tar.bz2"
|
||||
backupfile="${arkbackupdir}/${daystamp}/${instance}.${datestamp}.tar"
|
||||
|
||||
if [ "$arkbackupcompress" == "false" ]; then
|
||||
tar -cf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
|
||||
else
|
||||
backupfile="${backupfile}.bz2"
|
||||
tar -jcf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user