~johanvandegriff/zfs-backup-pull

8acff5d5c145d99945c6a1a8f7d9c97e3a9dc6dc — Johan Vandegriff 2 years ago 30fd949
fixed typo
1 files changed, 3 insertions(+), 1 deletions(-)

M confuzer-backup.sh
M confuzer-backup.sh => confuzer-backup.sh +3 -1
@@ 70,11 70,13 @@ do
  until zfs list -t snapshot | grep "$dataset@$new_snapshot"
  do
    echo "receiving \"$dataset\" from \"$remote\", old: \"$old_snapshot\"" | tee -a "$log"
    if [[ -z "$old" ]]; then
    if [[ -z "$old_snapshot" ]]; then
        echo "receiving for the first time, not incremental" | tee -a "$log"
        ssh -o MACs=hmac-md5 -p "$port" "$remote" \
            "zfs send -R ${remote_pool}/${dataset}@${new_snapshot}" | \
            pv | zfs recv -Fdu "$local_pool"
    else
        echo "receiving incremental" | tee -a "$log"
        ssh -o MACs=hmac-md5 -p "$port" "$remote" \
            "zfs send -R -I ${remote_pool}/${dataset}@${old_snapshot} ${remote_pool}/${dataset}@${new_snapshot}" | \
            pv | zfs recv -Fdu "$local_pool"