resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

Resolve paths in exclude files?

Open Technici4n opened this issue 10 months ago • 2 comments

Hi, I noticed that resticprofile does some path resolution for paths in the config file, but not for paths in an exclude file. It might be nice to resolve paths in the exclude file too, before it is passed to restic.

For example, source = ["~/Documents"] will resolve correctly in Windows, and exclude = ["~/Documents/something-to-exclude"] will too, but e.g. excluding ~/Documents/something-to-exclude in an exclude file will not resolve correctly.

Technici4n avatar Jan 27 '25 11:01 Technici4n

That would be a nice to have; but it also introduces a breaking change for existing configs 🤔

creativeprojects avatar Feb 03 '25 17:02 creativeprojects

Maybe a candidate for v2? :P

Technici4n avatar Feb 03 '25 22:02 Technici4n