Re: Script for backing up Jenkins

2018-10-18 Thread gotviseryon
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 
wrote:
>
> Hi I can suggest two approaches here,
> All Jenkins configuration (jobs config, credentials,...etc) will be saved 
> in  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
>
> On Tue 16 Oct, 2018, 6:33 AM , > wrote:
>
>> 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-use...@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.
>>
>

-- 
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+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-18 Thread gotviseryon
Nope.  I have a volume attached to that server and backing up to that 
volume.

On Wednesday, October 17, 2018 at 6:43:21 PM UTC-4, Sam K wrote:
>
> Hi
>   What is your backup location?  I hope its not on the same server as the 
> Jenkins Master.  
>
> On Wed, Oct 17, 2018 at 2:22 PM > wrote:
>
>> 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.
>>
>> On Wednesday, October 17, 2018 at 11:36:15 AM UTC-4, Sam K wrote:
>>>
>>> Glad to hear that Adam. 
>>>
>>> On Tue, Oct 16, 2018, 11:03 AM Adam von Nieda  
>>> wrote:
>>>

   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
 ad...@vonnieda.org




 On Oct 16, 2018, at 11:05 AM, Sam K  wrote:

 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-use...@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.


 -- 
 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 
 jenkinsci-use...@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.

>>> -- 
>> 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 
>> jenkinsci-use...@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.
>>
>

-- 
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+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-17 Thread RAJENDRA PRASAD
Hi I can suggest two approaches here,
All Jenkins configuration (jobs config, credentials,...etc) will be saved
in  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

On Tue 16 Oct, 2018, 6:33 AM ,  wrote:

> 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+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-17 Thread Sreeram Krishna
Hi
  What is your backup location?  I hope its not on the same server as the
Jenkins Master.

On Wed, Oct 17, 2018 at 2:22 PM  wrote:

> 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.
>
> On Wednesday, October 17, 2018 at 11:36:15 AM UTC-4, Sam K wrote:
>>
>> Glad to hear that Adam.
>>
>> On Tue, Oct 16, 2018, 11:03 AM Adam von Nieda  wrote:
>>
>>>
>>>   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
>>> ad...@vonnieda.org
>>>
>>>
>>>
>>>
>>> On Oct 16, 2018, at 11:05 AM, Sam K  wrote:
>>>
>>> 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-use...@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.
>>>
>>>
>>> --
>>> 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
>>> jenkinsci-use...@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.
>>>
>> --
> 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
> jenkinsci-users+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-17 Thread Sreeram Krishna
Glad to hear that Adam.

On Tue, Oct 16, 2018, 11:03 AM Adam von Nieda  wrote:

>
>   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
> a...@vonnieda.org
>
>
>
>
> On Oct 16, 2018, at 11:05 AM, Sam K  wrote:
>
> 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+unsubscr...@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.
>
>
> --
> 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
> jenkinsci-users+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-16 Thread 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
a...@vonnieda.org




> On Oct 16, 2018, at 11:05 AM, Sam K  wrote:
> 
> 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+unsubscr...@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.

-- 
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+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-16 Thread 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 unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@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.


Re: Script for backing up Jenkins

2018-10-16 Thread Vladimir Zak
Hi,
Try ThinBackup plugin.

Vladimír

Dne út 16. 10. 2018 15:33 uživatel  napsal:

> 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+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Script for backing up Jenkins

2018-10-16 Thread gotviseryon
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+unsubscr...@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.