Discussion:
Script for backing up Jenkins
g***@gmail.com
2018-10-16 13:33:00 UTC
Permalink
Hello,

We are using Open Source Jenkins. We want to backup the configuration and
any changes happening in Jenkins everyday for recovery purpose. Is there
any scripts available for this purpose? Jenkins is on Linux VM.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vladimir Zak
2018-10-16 13:40:05 UTC
Permalink
Hi,
Try ThinBackup plugin.

Vladimír
Post by g***@gmail.com
Hello,
We are using Open Source Jenkins. We want to backup the configuration and
any changes happening in Jenkins everyday for recovery purpose. Is there
any scripts available for this purpose? Jenkins is on Linux VM.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAHRFW7ipm-2fU%3D%3DaaZTeK6hMhpV0grQgbTbsH_j6g%3D4cmGnBGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Sam K
2018-10-16 16:05:05 UTC
Permalink
Hi
I have a backup mechanism in place. I have a second Jenkins instance and I've been using rsync in a cronjob to keep sending all config.xmls and basically everything except build information and artifacts to the backup Jenkins. It send the information every 2 mins.

I remember testing it once and it worked as expected. But it's been more than a year since the last testing to be honest.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adam von Nieda
2018-10-16 17:55:26 UTC
Permalink
I have a similar setup for Disaster Recovery, and rsync the entire stack. Works like a charm, and I’ve tested within the last week.

--
Adam vonNieda
Post by Sam K
Hi
I have a backup mechanism in place. I have a second Jenkins instance and I've been using rsync in a cronjob to keep sending all config.xmls and basically everything except build information and artifacts to the backup Jenkins. It send the information every 2 mins.
I remember testing it once and it worked as expected. But it's been more than a year since the last testing to be honest.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org.
For more options, visit https://groups.google.com/d/optout.
Sreeram Krishna
2018-10-17 15:35:55 UTC
Permalink
Glad to hear that Adam.
Post by Adam von Nieda
I have a similar setup for Disaster Recovery, and rsync the entire
stack. Works like a charm, and I’ve tested within the last week.
--
Adam vonNieda
Hi
I have a backup mechanism in place. I have a second Jenkins instance and
I've been using rsync in a cronjob to keep sending all config.xmls and
basically everything except build information and artifacts to the backup
Jenkins. It send the information every 2 mins.
I remember testing it once and it worked as expected. But it's been more
than a year since the last testing to be honest.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org
<https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKn1gMtd4aiT2oNAvp0VB0fHx%2BT22DkYC1GGDCFuX%3DrxZbX55A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-10-17 21:22:30 UTC
Permalink
Thanks everyone for the update. For now we are going with the Periodic
Backup plugin which provides the backup of entire JENKINS_HOME. This
plugin works exactly the way we want. But, we might end up with rsync
option eventually. Weighing in on each of the option. Will keep posted.
Thanks again everyone.
Post by Sreeram Krishna
Glad to hear that Adam.
Post by Adam von Nieda
I have a similar setup for Disaster Recovery, and rsync the entire
stack. Works like a charm, and I’ve tested within the last week.
--
Adam vonNieda
Hi
I have a backup mechanism in place. I have a second Jenkins instance and
I've been using rsync in a cronjob to keep sending all config.xmls and
basically everything except build information and artifacts to the backup
Jenkins. It send the information every 2 mins.
I remember testing it once and it worked as expected. But it's been
more than a year since the last testing to be honest.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org
<https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9cfb849a-d24a-4eec-9fb0-cdb745c21d21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sreeram Krishna
2018-10-17 22:43:00 UTC
Permalink
Hi
What is your backup location? I hope its not on the same server as the
Jenkins Master.
Post by g***@gmail.com
Thanks everyone for the update. For now we are going with the Periodic
Backup plugin which provides the backup of entire JENKINS_HOME. This
plugin works exactly the way we want. But, we might end up with rsync
option eventually. Weighing in on each of the option. Will keep posted.
Thanks again everyone.
Post by Sreeram Krishna
Glad to hear that Adam.
Post by Adam von Nieda
I have a similar setup for Disaster Recovery, and rsync the entire
stack. Works like a charm, and I’ve tested within the last week.
--
Adam vonNieda
Hi
I have a backup mechanism in place. I have a second Jenkins instance
and I've been using rsync in a cronjob to keep sending all config.xmls and
basically everything except build information and artifacts to the backup
Jenkins. It send the information every 2 mins.
I remember testing it once and it worked as expected. But it's been
more than a year since the last testing to be honest.
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org
<https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/9cfb849a-d24a-4eec-9fb0-cdb745c21d21%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/9cfb849a-d24a-4eec-9fb0-cdb745c21d21%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKn1gMsSGTq%3DbyvakJUSmO7FEqe56-wojOmROM2EFc2Jux4JeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-10-18 19:58:08 UTC
Permalink
Nope. I have a volume attached to that server and backing up to that
volume.
Post by Sreeram Krishna
Hi
What is your backup location? I hope its not on the same server as the
Jenkins Master.
Post by g***@gmail.com
Thanks everyone for the update. For now we are going with the Periodic
Backup plugin which provides the backup of entire JENKINS_HOME. This
plugin works exactly the way we want. But, we might end up with rsync
option eventually. Weighing in on each of the option. Will keep posted.
Thanks again everyone.
Post by Sreeram Krishna
Glad to hear that Adam.
Post by Adam von Nieda
I have a similar setup for Disaster Recovery, and rsync the entire
stack. Works like a charm, and I’ve tested within the last week.
--
Adam vonNieda
Hi
I have a backup mechanism in place. I have a second Jenkins instance
and I've been using rsync in a cronjob to keep sending all config.xmls and
basically everything except build information and artifacts to the backup
Jenkins. It send the information every 2 mins.
I remember testing it once and it worked as expected. But it's been
more than a year since the last testing to be honest.
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org
<https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/9cfb849a-d24a-4eec-9fb0-cdb745c21d21%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/9cfb849a-d24a-4eec-9fb0-cdb745c21d21%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1e2b91f4-ad29-489e-b38c-54e5f28fc1b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RAJENDRA PRASAD
2018-10-18 00:21:54 UTC
Permalink
Hi I can suggest two approaches here,
All Jenkins configuration (jobs config, credentials,...etc) will be saved
in <jenkins_home> directory.

If it is running on Linux it must in /var/lib/Jenkins/ folder

On the same Linux machine install SVN/git client create a commnd to
check-in files.

You can run this command via Unix cron job.

Another approach is via Jenkins backup plugin.

Another approach is to use a seperate Jenkins job to run SVN/git check-in
command from build command.

But last approach may not work when all Jenkins executors are stuck while
running other jobs.

Thanks
Rajendra
Post by g***@gmail.com
Hello,
We are using Open Source Jenkins. We want to backup the configuration and
any changes happening in Jenkins everyday for recovery purpose. Is there
any scripts available for this purpose? Jenkins is on Linux VM.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02RKfv%2Bh2pSAskmEG_NKc8Btn30Yh4evvL4EGOfSv2A5_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-10-18 20:00:06 UTC
Permalink
I found a plugin SCM Sync plugin. Exploring this as well.

On Wednesday, October 17, 2018 at 8:22:16 PM UTC-4, rajendraprasad reddy
Post by RAJENDRA PRASAD
Hi I can suggest two approaches here,
All Jenkins configuration (jobs config, credentials,...etc) will be saved
in <jenkins_home> directory.
If it is running on Linux it must in /var/lib/Jenkins/ folder
On the same Linux machine install SVN/git client create a commnd to
check-in files.
You can run this command via Unix cron job.
Another approach is via Jenkins backup plugin.
Another approach is to use a seperate Jenkins job to run SVN/git check-in
command from build command.
But last approach may not work when all Jenkins executors are stuck while
running other jobs.
Thanks
Rajendra
Post by g***@gmail.com
Hello,
We are using Open Source Jenkins. We want to backup the configuration
and any changes happening in Jenkins everyday for recovery purpose. Is
there any scripts available for this purpose? Jenkins is on Linux VM.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/43537db5-e208-4b38-9b0f-5a36f976c948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...