go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.45k stars 5.52k forks source link

[Feature] Periodical Backups as Config Parameter #10477

Open DatDucati opened 4 years ago

DatDucati commented 4 years ago

Description

I already know about the gitea dump command. But sadly automating it is rather cumbersome and if it was an configurable entity of gitea, it would make the management of backups much better. It would provide various benefits such as:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because of inactivity. You can re-open it if needed.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

zyansheep commented 4 years ago

This would be pretty nice to have and it seems pretty easy to implement. Store the last backup time and see if a certain amount of time has passed. If it has, depending on config, either replace the last backup or create a new file with gitea dump.

EDIT: I wonder if SQL servers have an incremental backup feature.