mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
feat(backup): add tmpdir to backup exclusion (#4386)
This commit is contained in:
parent
c7aedf5a77
commit
2122a6b390
@ -126,7 +126,7 @@ fn_backup_compression() {
|
||||
core_exit.sh
|
||||
fi
|
||||
|
||||
tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${lockdir}" ./.
|
||||
tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${lockdir}" --exclude "${tmpdir}" ./.
|
||||
local exitcode=$?
|
||||
if [ "${exitcode}" != 0 ]; then
|
||||
fn_print_fail_eol
|
||||
|
Loading…
Reference in New Issue
Block a user