Skip to content

Commit

Permalink
feat(backup): add tmpdir to backup exclusion (#4386)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 authored Nov 22, 2023
1 parent c7aedf5 commit 2122a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/modules/command_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2122a6b

Please sign in to comment.