mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 10:38:27 +00:00
Enable/Disable backup compression
This commit is contained in:
parent
eafc078400
commit
6393b07470
@ -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 directory in which to store backups. Can be overridden in
|
||||||
the instance config.
|
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`::
|
`arkBackupPostCommand`::
|
||||||
Command to be run using `eval` after backup completes.
|
Command to be run using `eval` after backup completes.
|
||||||
`$backupfile` will be set to the full path of the backup tar.bz2 file.
|
`$backupfile` will be set to the full path of the backup tar.bz2 file.
|
||||||
|
|||||||
@ -3174,7 +3174,12 @@ doBackup(){
|
|||||||
echo -ne "${NORMAL} Compressing Backup "
|
echo -ne "${NORMAL} Compressing Backup "
|
||||||
backupfile="${arkbackupdir}/${daystamp}/${instance}.${datestamp}.tar.bz2"
|
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}"
|
rm -rf "${backupdir}"
|
||||||
|
|
||||||
if [ -f "${backupfile}" ]; then
|
if [ -f "${backupfile}" ]; then
|
||||||
|
|||||||
@ -15,6 +15,7 @@ steamcmd_workshoplog="/home/steam/Steam/logs/workshop_log.txt" # Steam work
|
|||||||
# config environment
|
# config environment
|
||||||
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer" # name of ARK server executable
|
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer" # name of ARK server executable
|
||||||
arkbackupdir="/home/steam/ARK-Backups" # path to backup directory
|
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
|
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)
|
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
|
arkNoPortDecrement="true" # unset this to use the old Port - 1 behaviour
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user