Skip to content

Commit

Permalink
add BACKUPDIR to excluded directories when trying to create a backup …
Browse files Browse the repository at this point in the history
…via /bin/createBackup.sh. This refs #341.
  • Loading branch information
jens-maus committed May 28, 2018
1 parent b2fafa9 commit 26aad3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TMPDIR=$(mktemp -d -p /usr/local/tmp)
echo 'load tclrega.so; rega system.Save()' | tclsh 2>&1 >/dev/null

# create a gzipped tar of /usr/local
tar --owner=root --group=root --exclude=/usr/local/tmp --exclude=/usr/local/lost+found --exclude-tag=.nobackup --one-file-system --ignore-failed-read -czf ${TMPDIR}/usr_local.tar.gz /usr/local 2>/dev/null
tar --owner=root --group=root --exclude=/usr/local/tmp --exclude=/usr/local/lost+found --exclude=${BACKUPDIR} --exclude-tag=.nobackup --one-file-system --ignore-failed-read -czf ${TMPDIR}/usr_local.tar.gz /usr/local 2>/dev/null

# sign the configuration with the current key
crypttool -s -t 1 <${TMPDIR}/usr_local.tar.gz >${TMPDIR}/signature
Expand Down

0 comments on commit 26aad3c

Please sign in to comment.