Retain last 3 snapshots

Hi, I only do backup every month or two, not on a regular schedule, so it’s not “weekly” or “monthly”, etc.

How can I tell Kopia to retain only the most recent 3 snapshots, for example.

thanks

That’s what keep-latest is for.

You can do this (to set global policy for all backups)

kopia policy set --global --keep-latest 3 --keep-daily 0 --keep-weekly 0 --keep-monthly 0 --keep-annual 0

Alternatively replace --global with a path this applies to.

1 Like