1 unstable release
Uses old Rust 2015
0.1.0 | Sep 28, 2018 |
---|
#31 in #zfs
2KB
Zoop
Manage zfs snapshot transfer
plans
- to select snapshots to replicate, provide a regex or similar matching mechanism
- significant buffering is required for send/recv, as is overlapping send/recv
- send/recv tends to have zero network utilization initially as it examines disks to determine what whill be sent
- take advantage of this by ensuring we have N send/recvs running simultaniously when possible
- start N
send
s before arecv
is possible (ie: when recving a previous incrimental) to ensure we can always utilize the network completely.
- snapshot cleanup
- use timeline buckets
- use avaliable space in destination
- use known to be transfered
- avoiding "no longer exists" issues
- manage deletes from the replication process
zfs recv
into mounted fs- must be supported
- being able to examine read-only snapshots important feature of backup system (especially when limited local snapshots are maintained)
- desirable not to automatically mount on destiation to allow
zfs allow
provided permissions to be sufficient for recv.- unclear how recv with mounting disabled interacts with existing mounted filesystems
- may not allow recving that affects mount points (ie: removes them)
- consider the case of a filesystem being deleted
zfs snapshot & sync managment tools
- sanoid
- https://github.com/jimsalterjrs/sanoid
syncoid
: zfs send, uses-I
and/or-i
. Supports resume.- no use of zfs bookmarks.
- creation/deletion policy?
- zxfer
- unhappy if snapshots that were transfered to destiation are later deleted on source. requires one delete them on the destination before it will sync.
- Uses
zfs send -i
, no use of-I
. Commands:send -nPv
send -nv
receive
,receive -F
send -nPv -i
send -i
list -t filesystem,volume -Ho name -s creation
list -Hr -o name -s creation -t snapshot
list -Hr -o name -S creation -t snapshot
list -t filesystem,volume -Hr -o name
- no bookmark handling at all (only works with snapshots)
- zrep
- replication and failover
- ksh
- z3
- send zfs snapshots to s3
- ZnapZend
- zfsnap
- pyznap
- zrepl
- language: go
- snapshotting + replication
- tls or ssh transport
- runs as a daemon
- provides a "status" interface
- pull or push configurations
- does not support raw/encrypted sends
- does not support send resume
- uses bookmark per filesystem to track lask sync position
Various references related to zfs bookmarks & send
- http://open-zfs.org/wiki/Documentation/ZfsSend
- https://www.reddit.com/r/zfs/comments/5op68q/can_anyone_here_explain_zfs_bookmarks/
- https://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSBookmarksWhatFor
Snapshot Name Styles
- zfs-auto-snapshot vanilla
<prefix>_<label>_YYYY-MM-DD-HHmm
<prefix>
is typicallyzfs-auto-snap
<label>
is typically one offrequent
,hourly
,daily
,monthly
,weekly
.
- zfs-auto-snapshot sort-mod
<prefix>_YYYY-MM-DD-HHmm_<label>
<prefix>
is typicallyznap
<label>
is typically one offrequent
,hourly
,daily
,monthly
,weekly
.
Snapshot Policy
- zfs-auto-snapshot
- count per category
- frequent (15m): 4
- hourly: 24
- daily: 31
- weekly: 8
- monthly: 12
- count per category
- Mac Timemachine
- creation
- unspecified number/rate of "local" snapshots
- hourly: 24
- daily: 31
- weekly: as many as space permits
- deletion
- oldest first
- creation
- snapper
- time based
- same "limit per period" that zfs-auto-snapshot & TimeMachine use. Unlike zfs-auto-snapshot, it dynamically decides which grouping a snap belongs to (they aren't explicitly tagged as daily, etc)
- boot based
- before/after
- time based