4 ms·
@gm Did you automate this somehow? If so, I would love to hear about it.
by boramalper 6y ago
@gm Did you automate this somehow? If so, I would love to hear about it.
- vorpalhex 6y ago(Not parent) I've been doing a fair bit on automating git lately. I suspect this actually isn't too difficult of a project - golang has a very nice git implementation for it that is a pleasure to use. Honestly even a well written bash/zsh script would get you there as long as you have a way to feed what repos to run into them.
- gm 6y agoYou'd be surprised how simple it is (but I like simple): It's a bunch of batch files (I'm that old) that basically run the "git clone --bare" command on each repo, and then uses 7z to create a single archive of all the repos, plus text file is included that tells me how to restore the backup to another server (git push --mirror <url>). I included that because I figure when I need it I'm gonna be sort of stressed, lol. I specifically stay away from anything fancier than plain git commands because I do not want to be testing these backups all the time to make sure they're usable. Since the 7z archives are just plain files, they are backed up with all of my other stuff via my normal cloud/offline backups that I have.
- boramalper 6y agoMakes sense, thanks! :)