`restore` verbatim `--include` and `--exclude` options
Output of restic version
restic 0.16.4 compiled with go1.21.6 on linux/amd64
What should restic do differently? Which functionality do you think we should add?
It would be helpful if the --files-from feature that exists in "backup" function to backup a list of files saved as paths in a text file also existed for the "restore" function to restore a list of files based on their paths that are read from a text file and restored from a snapshot to a target location.
What are you trying to do? What problem would this solve?
This would allow me to create a list of files paths in a snapshot using the restic "ls" function and save the output list to a text file, then filter those files to wanted ones to restore daily from the latest snapshot using a restore script. This can somehow already be achieved by the recently added restic "--include-file" option to the "restore" function but the --include and --exclude expect patterns not plain file names and that causes a problem when trying to restore files which have pattern interpretable characters in their paths like "WR-7200o[.jpg" for example.
Did restic help you today? Did it make you happy in any way?
I use it in all my production servers and by far it's the most efficient, fast, yet reliable backup solution that we have worked with. I genuinely can't give the developers enough praise for their efforts in creating a production-ready and reliable open-source backup solution that's actively maintained and improved more than even the other proprietary solutions out there.
Source: restic/restic