bdrewery / zfstools

Various ZFS scripts. Most notably, zfs-auto-snapshot, a ruby clone of OpenSolaris auto snapshotting
Other
141 stars 29 forks source link

add "cleanup_only" configuration to skip snapshotting #49

Open phryneas opened 2 years ago

phryneas commented 2 years ago

I have zfs-auto-snapshot running on a remote machine and regularly pull all remote snapshots using syncoid.

As a result, this accumulates a lot of snapshots locally - I had 50000 frequent snapshots that had accumulated over the years.

With this change, I can do a zfs set com.sun:auto-snapshot=cleanup_only tank/syncoid and zfs-auto-snapshot can run locally and clean up snapshots, but not create new ones (since these will be synced from an external source).