From 811c0cc7440eeb39320f4bd73b77309e30ae0cd7 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 1 Jul 2019 17:13:19 +0200 Subject: [PATCH] Exclude tmp dir from backups --- contrib/backup/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backup/functions b/contrib/backup/functions index e9dccb148..5a57b27be 100644 --- a/contrib/backup/functions +++ b/contrib/backup/functions @@ -40,7 +40,7 @@ function backup_dir_create () { function backup_files () { 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 }