How to backup and restore configuration of GO CI server?

515 views
Skip to first unread message

Евгения Гусакова

unread,
Jun 25, 2016, 3:14:40 PM6/25/16
to go-cd
Hi!

I have 3 questions:

1. Are any possibility to do full backup of Go CI configuration using API?

2. How can I download/upload/update templates using API?

3. How can I get full list of pipelines (e.g. to do same change to multiple pipelines using API, like change git server or change variables etc)

Thank you!


David Rice

unread,
Jun 25, 2016, 4:31:37 PM6/25/16
to go-cd
Have you looked at the API docs?


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

Jason Rowe

unread,
Jun 27, 2016, 4:37:15 PM6/27/16
to go-cd
Is this new feature related?

"#2240 - Added a URL endpoint to grab a snapshot of the GoCD config git repository. For example, backup the config repo 'config-repository' using:
git clone https://ci.example.com/go/api/config-repository.git"

Zabil C M

unread,
Jun 28, 2016, 12:38:08 AM6/28/16
to go-cd
You 'can' use the new API to back up only the GoCD configuration file.
GoCD uses an internal git repository to store changes made to the config xml, using this API you can clone that internal repository to inspect changes, view history or maybe implement some soft hooks to act on new changes.

If you want a full backup of the configuration along with all the pipeline run information etc use https://api.go.cd/current/#create-a-backup


Reply all
Reply to author
Forward
0 new messages