mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 06:58:28 +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
|
#Tar the files and remove the original Backup Directory. Saves about 50MB of disk space per backup
|
||||||
|
|
||||||
echo -ne "${NORMAL} Compressing Backup "
|
echo -ne "${NORMAL} Compressing Backup "
|
||||||
backupfile="${arkbackupdir}/${daystamp}/${instance}.${datestamp}.tar.bz2"
|
backupfile="${arkbackupdir}/${daystamp}/${instance}.${datestamp}.tar"
|
||||||
|
|
||||||
if [ "$arkbackupcompress" == "false" ]; then
|
if [ "$arkbackupcompress" == "false" ]; then
|
||||||
tar -cf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
|
tar -cf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
|
||||||
else
|
else
|
||||||
|
backupfile="${backupfile}.bz2"
|
||||||
tar -jcf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
|
tar -jcf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user