Add min_keep parameter

This commit is contained in:
thorsten.spille 2023-03-05 00:28:46 +01:00
parent d7eccfd4fc
commit dffd1037a2

View File

@ -1,10 +1,14 @@
# zsync # zsync
ZFS replication script by Thorsten Spille <thorsten@spille-edv.de> ZFS replication script by Thorsten Spille <thorsten@spille-edv.de>
- replicates ZFS filesystems/volumes with user parameter bashclub:zsync configured - replicates ZFS filesystems/volumes with user parameter bashclub:zsync (or custom name) configured
- mirrored replication with existing snapshots - parameter setting uses zfs hierarchy on source
- pull replication only - mirrored replication with existing snapshots (filtered by snapshot_filter)
- creates full path on target pool - pull/local replication only
- auto creates full path on target pool, enforce com.sun:auto-snapshot=false
- raw replication
- tested on Proxmox VE 7.x
- ssh cipher auto selection
## Installation ## Installation
@ -36,6 +40,9 @@ subvol_source="inherited|received"
# snapshot name filter # snapshot name filter
snapshot_filter="hourly|daily|weekly|monthly" snapshot_filter="hourly|daily|weekly|monthly"
# number of minimum snapshots to keep (per snapshot filter)
min_keep=3
~~~ ~~~
### Define a cronjob ### Define a cronjob