Limit check --read-data to the last x snapshots?

Hello,

is there any way to limit the check command to check the last x snapshots?

No, sorry. The check command doesn’t have any filtering flags (see restic help check).

Can you describe your use case more? I’m just curious why you need to limit the check.

I have ab bunch of laptops, which I backup with restic.
After the backup I check wish to check my last x backups.
The reason is to save time and bandwidth.

I don’t think you need to check --read-data after every single backup. If you need that, you have some serious problem with your repository storage :smiley:

Restic does a lot of work to make sure that data was indeed saved in the repository, so if you have a normal functioning infrastructure you can run check less often.

You might want to take a look at this discussion too.