redmop / sanoid

Policy-driven snapshot management and replication tools. Currently using ZFS for underlying next-gen storage, with explicit plans to support btrfs when btrfs becomes more reliable. Primarily intended for Linux, but BSD use is supported and reasonably frequently tested.
http://www.openoid.net/products/
GNU General Public License v3.0
2 stars 0 forks source link

Syncoid - PV options (average, rate limiting) #8

Closed redmop closed 9 years ago

redmop commented 9 years ago

Defaults for pv are "-p -t -e -r -b". They all need included if average is used. Let's spell them out "--progress --timer --eta --rate --bytes" Size for pv is "-s " Let's spell it out "--size "

Average for pv is "-a" Let's spell them out "--average-rate"

Rate limiting for pv is "-L " Lets spell it out withg "--rate-limit "

redmop commented 9 years ago

rate limit only line speed

pseudo code

zfs send | pv <options> | compress | mbuffer <options with rate limit> | ssh <options> | mbuffer <options> | uncompress | zfs recv

This will likely mean using mbuffer to rate limit instead of pv. This will cause pv to show a different rate than the line.

redmop commented 9 years ago

Finished. Not adding in rate limiting as it's already done, just not documented except in code.