Skip to content

Commit

Permalink
Merge pull request #1188 from oltitov/master
Browse files Browse the repository at this point in the history
Enable/Disable backup compression
  • Loading branch information
klightspeed authored Jul 11, 2021
2 parents eafc078 + 6393b07 commit 10f7cdf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,11 @@ For the standard ARK server, this should be `ShooterGame/Binaries/Linux/ShooterG
The directory in which to store backups. Can be overridden in
the instance config.
`arkbackupcompress`::
Enable/Disable backup compression. Default true.
Helps to remove the load on the CPU, but increases the size of backups,
see arkMaxBackupSizeMB
`arkBackupPostCommand`::
Command to be run using `eval` after backup completes.
`$backupfile` will be set to the full path of the backup tar.bz2 file.
Expand Down
7 changes: 6 additions & 1 deletion tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,12 @@ doBackup(){
echo -ne "${NORMAL} Compressing Backup "
backupfile="${arkbackupdir}/${daystamp}/${instance}.${datestamp}.tar.bz2"
tar -jcf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
if [ "$arkAutoUpdateOnStart" == "false" ]; then
tar -cf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
else
tar -jcf "${backupfile}" -C "${arkbackupdir}" "${datestamp}"
fi
rm -rf "${backupdir}"
if [ -f "${backupfile}" ]; then
Expand Down
1 change: 1 addition & 0 deletions tools/arkmanager.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ steamcmd_workshoplog="/home/steam/Steam/logs/workshop_log.txt" # Steam work
# config environment
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer" # name of ARK server executable
arkbackupdir="/home/steam/ARK-Backups" # path to backup directory
arkbackupcompress="true" # Enable/Disable backup compression
arkwarnminutes="60" # number of minutes to warn players when using update --warn
arkprecisewarn="false" # set this to true to obey warnminutes even if no players are connected (recommended for clusters)
arkNoPortDecrement="true" # unset this to use the old Port - 1 behaviour
Expand Down

0 comments on commit 10f7cdf

Please sign in to comment.