Possible to set up automatic download of one zip per repository?


#1

I would like to create a daily zip file for each repository of every on my gogs server.
Like the zip download that can be done from the web UI, but for every user’s every repository.
I.e. create a daily snapshot of all repositories.

I had the idea of using Jenkins or just a bash script to automate this, but I then need a way to find what repositories exist… which I cannot figure out how to do. There is no API for getting this info, right?

The “gogs backup” command works great, but it doesn’t give me the zipped files.

In general though - Gogs is just amazing - great work!!

Using Gogs 0.11.34.1122, running in Docker container. Postgres db in separate container.


#2

I use git bundle in a script on the server to generate bundle per repo.