Skip to content

Commit

Permalink
Remove bz2 extension from backup file when not compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
klightspeed authored Jul 17, 2021
1 parent 178c54a commit 062b892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 062b892

Please sign in to comment.