I am wondering if/how myrepos can be used to backup all (git) repositories under its control. By "backup", I mean
1. for every repository, zip up the repository data (ie, the .git
subdir) into a file named repository_name_<timestamp>.zip
(or tgz or whatever).
2. move that zip file into a globally specified directory (same for all repositories)
Is there something already prepared that I can use?
It took me a while, but for now I have found
If anybody has any comments on how to improve this, please let me know. Thanks, Benedikt
Personally I would do backups using a regular backup tool like restic or borg. This way you also backup the git config for each repository and any uncommitted changes or modifications to the index and you also get history of those things. Just using git bundle like that will miss those things.
BTW: my use of the mr backup command is per-repository and I use it to rsync remote repos locally. I then backup those with restic.