From 3705b9d849e082fad0bcbdbd3e0dac7ad4fa61d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sat, 22 Jul 2017 15:23:51 +0200 Subject: [PATCH] fixed tar backup --- containers/zammad-backup/docker-entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/containers/zammad-backup/docker-entrypoint.sh b/containers/zammad-backup/docker-entrypoint.sh index 46f3cd0..f572c78 100644 --- a/containers/zammad-backup/docker-entrypoint.sh +++ b/containers/zammad-backup/docker-entrypoint.sh @@ -13,14 +13,11 @@ if [ "$1" = 'zammad-backup' ]; then echo "${TIMESTAMP} - backuping zammad..." - # create backup dis - test -d ${BACKUP_DIR} || mkdir -p ${BACKUP_DIR} - # delete old backups test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -exec rm {} \; # tar files - tar -czf ${ZAMMAD_DIR} ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz + tar -czf ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz ${ZAMMAD_DIR} #db backup pg_dump --dbname=postgresql://postgres@zammad-postgresql:5432/zammad_production | gzip > ${BACKUP_DIR}/${TIMESTAMP}_zammad_db.psql.gz