I refer to the code here:
|
tar --zstd -C "${JENKINS_HOME}" -cf "${BACKUP_TMP_DIR}/${BACKUP_NUMBER}.tar.zstd" \ |
It's the master branch as of right now.
If you have a job in a folder, the backup tar will end up containing files like this:
jobs/FOLDERNAME/jobs/JOBNAME/config.xml
I believe this is caused by a misuse an unwanted side effect of the tar --anchored switch.
I am providing a PR with a fix.