Merge 7f2d732dee into 4ccd0b0d31
This commit is contained in:
commit
1d00a67a02
|
|
@ -1 +1 @@
|
|||
v0.4.3
|
||||
v0.4.4
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
jobs/some-folder/jobs/*/config.xml
|
||||
|
|
@ -0,0 +1 @@
|
|||
build.xml
|
||||
|
|
@ -0,0 +1 @@
|
|||
build logs
|
||||
|
|
@ -0,0 +1 @@
|
|||
2
|
||||
|
|
@ -0,0 +1 @@
|
|||
jobs/some-folder/jobs/*/config.xml
|
||||
|
|
@ -0,0 +1 @@
|
|||
build.xml
|
||||
|
|
@ -0,0 +1 @@
|
|||
build logs
|
||||
|
|
@ -0,0 +1 @@
|
|||
2
|
||||
Loading…
Reference in New Issue