I’m trying to trim down the set of files that restic backs-up from my machine. I have a lot of git repositories cloned on my machine from various current and past projects (around 1600 of them…), and I would like to prevent restic from backing up any files that I’ve set to be ignored by git. These files tend to be intermediate files that I could regenerate if I needed to, so there’s no need to back them up.
Has anyone come up with a workable solution for this kind of problem?
I can probably get git to generate a list of all of the files it’s ignoring for each repository, and then put that list into an exclude file that I feed into restic. However this seems like a somewhat cumbersome way of doing it – if restic knew how to interpret git ignore files then it would be really handy!