Browse Source

Maintenance: Exclude .yarn/cache folder from backup.

Martin Gruner 2 years ago
parent
commit
26862f5e7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/backup/functions

+ 1 - 1
contrib/backup/functions

@@ -138,7 +138,7 @@ function backup_files () {
   if [ "${FULL_FS_DUMP}" == 'yes' ]; then
     echo " ... as full dump"
     tar -C / -czf ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz\
-      --exclude='tmp' --exclude 'node_modules' --exclude '.git' --exclude='config/database.yml' ${ZAMMAD_DIR#/}
+      --exclude='tmp' --exclude 'node_modules' --exclude '.git' --exclude '.yarn/cache' --exclude='config/database.yml' ${ZAMMAD_DIR#/}
 
     state=$?
   else