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 in Jenkins by Anisha
359 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 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 by Sirajul
• 26,100 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,280 points
311 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
816 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 in Jenkins by Sirajul
• 26,100 points
80 views
0 votes
2 answers
0 votes
2 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

If you are talking about executing another ...READ MORE

answered Jul 31 in Jenkins by Sirajul
• 26,100 points
4,335 views
0 votes
1 answer

How to construct Maven installation in Jenkins for each Slave node?

I’m assuming that Java and Maven are ...READ MORE

answered Aug 1, 2018 in Jenkins by Sophie may
• 9,530 points
682 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
152 views
0 votes
1 answer