Re: [go-cd] Re: How to backup GOCD by automatically

2017-08-28 Thread Varsha Varadarajan
Hi Dominik,

You could make the API request via a script and use a cron to call it 
periodically. The authentication required for this API in the script can be 
parameterized. The second option that you mentioned - using the gocd 
pipeline that is timer triggered. I think that you might face this 
 issue while doing it if the 
pipeline is configured in the same GoCD server that you're trying to 
backup. 

On Monday, 28 August 2017 15:56:29 UTC+5:30, Dominik Kaspar wrote:
>
> Hi Arnav Kumar,
>
> In my opinion, your link does not answer the question.
> For the automatic creation of a GoCD backup (such as every midnight), 
> clicking a button in the UI is not the solution.
> Also triggering a backup via the REST API (as described in 
> https://api.gocd.org/current/#the-backup-object) is not good enough 
> because it requires a user and password that needs to be hard-coded (e.g., 
> in the curl -u 'user:pass' command).
>
> Is there any way a backup can be triggered for example via...
>
>1. a cron job (installed on the gocd server, without passwords 
>hard-coded anywhere)
>2. a gocd pipeline that runs periodically
>
> Regards,
> Dominik
>
> On Monday, August 21, 2017 at 11:09:59 PM UTC+2, Arnav Kumar wrote:
>>
>> Have a look at this: 
>> https://docs.gocd.org/current/advanced_usage/one_click_backup.html
>>
>> On Fri, Aug 18, 2017 at 11:43 AM,  wrote:
>>
>>> We heard that we can schedule the backup through GOCD pipeline itself. 
>>> But how can we achieve this?
>>>
>>>
>>> On Friday, August 18, 2017 at 9:12:30 PM UTC+5:30, vivu...@gmail.com 
>>> wrote:

 Hi,

 Our GOCD setup is running in Linux platform and we would need to 
 automate the backup process for GOCD. 

 Please suggest us with a proper method with sttep by step guide.

>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to go-cd+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] Re: How to backup GOCD by automatically

2017-08-28 Thread Dominik Kaspar
Hi Arnav Kumar,

In my opinion, your link does not answer the question.
For the automatic creation of a GoCD backup (such as every midnight), 
clicking a button in the UI is not the solution.
Also triggering a backup via the REST API (as described 
in https://api.gocd.org/current/#the-backup-object) is not good enough 
because it requires a user and password that needs to be hard-coded (e.g., 
in the curl -u 'user:pass' command).

Is there any way a backup can be triggered for example via...

   1. a cron job (installed on the gocd server, without passwords 
   hard-coded anywhere)
   2. a gocd pipeline that runs periodically

Regards,
Dominik

On Monday, August 21, 2017 at 11:09:59 PM UTC+2, Arnav Kumar wrote:
>
> Have a look at this: 
> https://docs.gocd.org/current/advanced_usage/one_click_backup.html
>
> On Fri, Aug 18, 2017 at 11:43 AM,  wrote:
>
>> We heard that we can schedule the backup through GOCD pipeline itself. 
>> But how can we achieve this?
>>
>>
>> On Friday, August 18, 2017 at 9:12:30 PM UTC+5:30, vivu...@gmail.com 
>> wrote:
>>>
>>> Hi,
>>>
>>> Our GOCD setup is running in Linux platform and we would need to 
>>> automate the backup process for GOCD. 
>>>
>>> Please suggest us with a proper method with sttep by step guide.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to go-cd+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.