Drubio
Drubio

Reputation: 1367

Can Jenkins be backup just with config and jobs?

I want to do an automatically backup of the JENKINS_HOME but due to file size I just want to copy the config.xml and /jobs.

Is it possible to restore Jenkins if needed with just those two things? How is the process to do it? Just replacing the config.xml and /jobs and restarting the service?

Thanks.

Upvotes: 2

Views: 438

Answers (1)

kristaps
kristaps

Reputation: 1723

Consider using the Jenkins SCM Sync configuration plugin - it allows to back up all your Jenkins settings (including job configurations) to git or SVN. Also, version control means you'll have an easier time debugging problems caused by configuration changes or to revert to an older configuration.

Upvotes: 1

Related Questions