Hi,
I have setup gitea server within LAN (on premise gitea server on desktop).
I want to have a back up gitea repository including users/roles etc so that in case of a failure, I can retrieve latest gitea content and setup the server again quickly without causing any disruption to gitea clients connecting from PCs within the LAN.
I see that there are basically 2 ways of doing this (Context: Windows PC) -
Copying gitea/data directory content on incremental basis or daily basis (say using robocopy command)
Running gitea dump command everyday so that the dump zip file is placed in backup path.
After trying out gitea dump, I understand that is creating a zip file of the gitea directory which consists of 3 directories custom, data, log.
So, I have decided to go ahead with using robocopy (for people who are unaware of robocopy, think of it as copy command).
Would share if I find any pros / cons further …
Robocopy won’t handle open files - you can set up retries and waits between retries, but ultimately files held with a lock won’t make the backup.
Therefore, I would say - “Both”.
When set up properly, the free or paid version of Duplicacy works very well and honors VSS. You will want to set it up and “kick tires generously” before putting in production, as with any backup software.