Because of the limited (i.e. absent) inclusion filters, I create a list of files with a combination of
grep for restic to process. There are 17,516 files in my list.
I feed that list to
restic and it processes things just fine:
restic -r sftp:host:/jffs/share/restic-temp backup --files-from /tmp/restic_backup_list
Then, when I show the snapshots, restic proceeds to list every single of my 17,516 files in the snapshots list, for each snapshot. Needless to say, this is not usable.
As a user, I guess I would expect restic to act the same way if I use exclude options or the --files-from option: the snapshot is anchored at some point (with the exclude case, it’s the point I specify on the command line; with the --files-from, it could be the highest directory in the list).
Is this intentional? Is there any way not to see 17,516 lines for every snapshot?
A couple of ways I can see to address this, from a user point of view:
- As mentioned above, have restic figure out the highest common directory in the list, and use that as the anchor point
- Let the user provide some reasonable label/directory to use as the anchor point
Thanks - Steven