I’m trying to create a backup of the /home filesystem. Basically, I do need the whole filesystem, but not the private ssh keys. So I run something like
restic backup /home and I’d like to exclude some files.
--exclude=".ssh"… excludes too much
--exclude=".ssh/*.pub"… probably excludes the wrong files (I’d like to backup the pub keys)
So what I need is a way to specify: Do a backup of everything but skip those files not ending with .pub
when within a .ssh folder. Is this possible somehow?