From 2a6c8e876a75c830f54b7b00eb3774f4b8fc71dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pra=C5=BCak?= Date: Tue, 26 Nov 2019 11:17:28 +0100 Subject: [PATCH] Include jobs/*/config.xml for backups For easier workarounds for #104 and #210 specifically --- backup/pvc/bin/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/pvc/bin/backup.sh b/backup/pvc/bin/backup.sh index 71a8f8e70..e8b9c76af 100644 --- a/backup/pvc/bin/backup.sh +++ b/backup/pvc/bin/backup.sh @@ -10,7 +10,7 @@ BACKUP_TMP_DIR=$(mktemp -d) backup_number=$1 echo "Running backup" -tar -C ${JENKINS_HOME} -czf "${BACKUP_TMP_DIR}/${backup_number}.tar.gz" --exclude jobs/*/config.xml --exclude jobs/*/workspace* -c jobs && \ +tar -C ${JENKINS_HOME} -czf "${BACKUP_TMP_DIR}/${backup_number}.tar.gz" --exclude jobs/*/workspace* -c jobs && \ mv ${BACKUP_TMP_DIR}/${backup_number}.tar.gz ${BACKUP_DIR}/${backup_number}.tar.gz [[ ! -s ${BACKUP_DIR}/${backup_number}.tar.gz ]] && echo "backup file '${BACKUP_DIR}/${backup_number}.tar.gz' is empty" && exit 1;