How do I best perform a backup
AnsweredThere are a lot of plugins and tools for performing backups like:
- Backup scheduling plugin - https://www.cloudbees.com/products/cloudbees-jenkins-platform/team-edition/features/backup-scheduling-plugin
- Backup plugin - https://wiki.jenkins-ci.org/display/JENKINS/Backup+Plugin
- thinBackup plugin - https://wiki.jenkins-ci.org/display/JENKINS/thinBackup
- 3rd Party tools (snapshotting, cloning, etc.)
As each of these meets a different requirement in terms of backing up what is the best way to perform a backup of the job configurations and global configurations?
-
I used a rsync for years and it was working fine, but you need to make sure to change ownership of the files when restoring.
0 -
I think it's going to depend a lot on your own environment, and especially what kind of failures you expect and how you'll recover from them. I use VM snapshots for the majority of my Jenkins backups, because in 90% of cases if something has gone wrong, I can best recover from a VM snapshot.
If you have a well-configured configuration management system (Puppet, Chef), or are using containers for Jenkins masters, then you might want to just be restoring the Jenkins data, and not the entire machine, for which I've found thinBackup to be the best so far.
0
Please sign in to leave a comment.
Comments
2 comments