How to backup GOCD by automatically

187 views
Skip to first unread message

vivu...@gmail.com

unread,
Aug 18, 2017, 11:42:30 AM8/18/17
to go-cd
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.

vivu...@gmail.com

unread,
Aug 18, 2017, 11:43:40 AM8/18/17
to go-cd
We heard that we can schedule the backup through GOCD pipeline itself. But how can we achieve this?

Arnav Kumar

unread,
Aug 21, 2017, 5:09:59 PM8/21/17
to go...@googlegroups.com

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dominik Kaspar

unread,
Aug 28, 2017, 6:26:29 AM8/28/17
to go-cd
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:
On Fri, Aug 18, 2017 at 11:43 AM, <vivu...@gmail.com> 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.

Varsha Varadarajan

unread,
Aug 28, 2017, 6:37:09 AM8/28/17
to go-cd
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. 
Reply all
Reply to author
Forward
0 new messages