allanjude / zxfer

A continuation of development on zxfer, a popular script for managing ZFS snapshot replication
BSD 2-Clause "Simplified" License
123 stars 40 forks source link

Exclude snapshots with specific property from transfer #24

Open Wouter0100 opened 8 years ago

Wouter0100 commented 8 years ago

I think the title says it all.

Currently I have a zfs-auto-snapshot which takes a snapshot every quarter, hour and so on. I'd like the quarter to be excluded from the transfer and only be available on the machine itself, not the destination machine.

I may look into this to implement it myself (and open a PR) in some days :).

allanjude commented 8 years ago

Thanks for the PR. I have an open issue for an exclude system, but that is for a specific dataset, this is a good extra use case to consider when writing that feature.

ghost commented 8 years ago

Another vote for this...I have a pair of machines where the transfer takes so long, that the frequent (every quarter-hour) snapshots don't transfer in time...so it would be good to just exclude those from the transfer.