This commit is contained in:
Tavin Cole 2025-12-30 15:52:59 +00:00 committed by GitHub
commit 1d00a67a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 13 additions and 3 deletions

View File

@ -1 +1 @@
v0.4.3
v0.4.4

View File

@ -41,11 +41,13 @@ trap '_trap' SIGQUIT SIGINT SIGTERM
# config.xml in child directories is state that should. For example-
# branches/myorg/branches/myrepo/branches/master/config.xml should be retained while
# branches/myorg/config.xml should not
ret=0
tar --zstd -C "${JENKINS_HOME}" -cf "${BACKUP_TMP_DIR}/${BACKUP_NUMBER}.tar.zstd" \
--exclude jobs/*/workspace* \
--exclude 'jobs/*/workspace*' \
--no-wildcards-match-slash --anchored \
--ignore-failed-read \
--exclude jobs/*/config.xml -c jobs || ret=$?
--exclude-ignore=.jenkinsbackupignore \
--exclude 'jobs/*/config.xml' -c jobs || ret=$?
if [[ "$ret" -eq 0 ]]; then
_log "INFO" "[backup] backup ${BACKUP_NUMBER} was completed without warnings"

View File

@ -0,0 +1 @@
jobs/some-folder/jobs/*/config.xml

View File

@ -0,0 +1 @@
jobs/some-folder/jobs/*/config.xml