How to create backup and copy files in jenkins

0 votes
I'm running jenkins on a virtual machine and I want it to be backed up, just in case the vm crashes.

How do I do that?
Feb 16, 2019 in Jenkins by Anisha
7,252 views

2 answers to this question.

0 votes

Hey @Anisha, all you need to do is to periodically back up your JENKINS_HOME directory. This contains all of your build jobs configurations, your slave node configurations, and your build history. To create a back-up of your Jenkins setup, just copy this directory. You can also copy a job directory to clone or replicate a job or rename the directory.

answered Feb 16, 2019 by Anjali
0 votes
  • You would require to copy and take backup of “JENKINS_HOME” directory in regular intervals.

  • You can create a cron job to do so.

  • Or you can use “Thin Backup” plugin in Jenkins.

  • All the configurations are stored as files in the Jenkins Home directory

answered Aug 1, 2019 by Sirajul
• 59,230 points

Related Questions In Jenkins

0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,300 points
1,882 views
0 votes
1 answer

What are parameterized jobs in jenkins and how to configure it?

Hey @Hannah, Parameterized jobs/builds are the ones ...READ MORE

answered Dec 16, 2018 in Jenkins by Kiyara
5,102 views
0 votes
1 answer

How to configure and use third party tools in jenkins?

The procedure to utilize a third party ...READ MORE

answered Aug 27, 2019 in Jenkins by Sirajul
• 59,230 points
3,798 views
0 votes
1 answer

How to create one Job in Jenkins from CLI?

Hi@akhtar, You need to download the jenkins-cli.jar file ...READ MORE

answered Jul 7, 2020 in Jenkins by MD
• 95,460 points
4,019 views
0 votes
1 answer

How to create an user in Jenkins?

Hi@akhtar, You need to login to your Jenkins ...READ MORE

answered Dec 7, 2020 in Jenkins by MD
• 95,460 points
704 views
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP