Exclude tmp dir from backups

This commit is contained in:
Thorsten Eckel 2019-07-01 17:13:19 +02:00
parent 7a965d7385
commit 811c0cc744

View file

@ -40,7 +40,7 @@ function backup_dir_create () {
function backup_files () { function backup_files () {
echo "creating file backup..." echo "creating file backup..."
tar -C / -czf ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz ${ZAMMAD_DIR#/} tar -C / -czf ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz --exclude='tmp' ${ZAMMAD_DIR#/}
ln -sfn ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz ${BACKUP_DIR}/latest_zammad_files.tar.gz ln -sfn ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz ${BACKUP_DIR}/latest_zammad_files.tar.gz
} }