Browse Source

feat(backup): add tmpdir to backup exclusion (#4386)

pull/4299/merge
Daniel Gibbs 1 year ago
committed by GitHub
parent
commit
2122a6b390
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lgsm/modules/command_backup.sh

2
lgsm/modules/command_backup.sh

@ -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…
Cancel
Save