Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup users dir #7

Merged
merged 2 commits into from
Oct 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ ex.
## master
[full changelog](https://github.com/sue445/jenkins-backup-script/compare/0.0.4...master)

* backup `$JENKINS_HOME/users`
* https://github.com/sue445/jenkins-backup-script/pull/7

## 0.0.4
[full changelog](https://github.com/sue445/jenkins-backup-script/compare/0.0.3...0.0.4)

Expand Down
2 changes: 2 additions & 0 deletions jenkins-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ fi
rm -rf $ARC_DIR
mkdir -p $ARC_DIR/plugins
mkdir -p $ARC_DIR/jobs
mkdir -p $ARC_DIR/users

cp $JENKINS_HOME/*.xml $ARC_DIR
cp $JENKINS_HOME/plugins/*.jpi $ARC_DIR/plugins
cp -R $JENKINS_HOME/users/* $ARC_DIR/users

cd $JENKINS_HOME/jobs/
ls -1 | while read job_name
Expand Down