Archive Jenkins settings and plugins
- $JENKINS_HOME/*.xml
- $JENKINS_HOME/plugins/*.jpi
- $JENKINS_HOME/jobs//.xml
./jenkins-backup.sh /path/to/jenkins_home archive.tar.gz
# add timestamp suffix
./jenkins-backup.sh /path/to/jenkins_home backup_`date +"%Y%m%d%H%M%S"`.tar.gz
https://wiki.jenkins-ci.org/display/JENKINS/Exclusive+Execution+Plugin
git@github.com:sue445/jenkins-backup-script.git
Recommended : specify Branch Specifier with latest release tag (ex. 0.0.2)
ex.
./jenkins-backup.sh $JENKINS_HOME /path/to/backup_`date +"%Y%m%d%H%M%S"`.tar.gz
- Debian lenny
- CentOS 6
- remove archive file if exixts
- first release