jimsalterjrs / sanoid

These are policy-driven snapshot management and replication tools which use OpenZFS for underlying next-gen storage. (Btrfs support plans are shelved unless and until btrfs becomes reliable.)
http://www.openoid.net/products/
GNU General Public License v3.0
3.15k stars 309 forks source link

Allow snapshots and bookmarks to be filtered by name #861

Closed gwollman closed 10 months ago

gwollman commented 1 year ago

We want to run syncoid with --no-sync-snap but we do not want to consider all available snapshots as suitable incremental sources, certain specially named snapshots. With the --filter flag, we can specify a regexp that will force syncoid to only "see" matching snapshots. This is not ideal: if we ever change which snapshots we use, filtering in this way will make it impossible to find a common snapshot or bookmark to use as an incremental source. But that would require quite a bit more thought to capture all of the different cases.

You probably don't want to take this as-is due to the hackish nature of how it was implemented but I wanted to at least raise the possibility. (The way we actually are looking to use this is to have only our daily-* snapshots synchronized, even if the most recent daily is not the most recent snapshot overall.)

phreaker0 commented 1 year ago

i think this use case will be already covered with #699