RELEASED: Public: 2020-10-07
- New option added to the restore configuration section of Restore/Backup jobs (CTR-2501)
CloudBees has added a new option to the restore configuration section of Restore/Backup jobs.
Users can now add a comma-separated list of Ant-style patterns to preserve content in the current
JENKINS_HOMEdirectory during the restore process, excluding it from the move operation.
A system property is used to set the list of Ant-style patterns. Users need to add
cb.backup.restore.keepFilesPatternto the system properties. For example,
-Dcb.backup.restore.keepFilesPattern='.snapshots,**/.snapshots' has to be added to the system properties, to preserve `.snapshotsfilesystem control files in the
$JENKINS_HOMEdirectory during the restore process.