I was wondering that it would be best to run my restic backups using the --files-from flag and a file with the list of items to be backed up. But I was not able to find how to put files and directories in such file.
There’s some kind of “pattern”, format, for that? Or I can simply put one item per line, for example?
The argument passed to --files-from must be the name of a text file that contains one pattern per line. The file must be encoded as UTF-8, or UTF-16 with a byte-order mark. Leading and trailing whitespace is removed from the patterns. Empty lines and lines starting with a # are ignored and each pattern is expanded when read,
Patterns are explained just few paragraphs earlier - here
Just try and when you have problem we can try to clarify.
And when you search for files-from on this forum you can see countless posts…
The docs refer to the function filepath.Glob which then refers to filepath.Match. There, the “glob syntax” is explained in more detail. Would it make sense to link to the Match function directly?