# backup was interrupted for some reason. If we don't do this, the zfs send -R command
# below may complain about snaps already existing as it tries to resend from the
# previous backup marker again from a previously interrupted replicate.
- $zfs rollback -r ${backup_pool}/${previous_backup_marker}
+ $zfs rollback -rf ${backup_pool}/${previous_backup_marker}
if [ $? != 0 ]; then
- fatal_and_exit "-E- remote incremental $zfs rollback command failed on $hostname" $mailto
+ sleep 120
+ $zfs rollback -rf ${backup_pool}/${previous_backup_marker}
+ if [ $? != 0 ]; then
+ fatal_and_exit "-E- remote incremental $zfs rollback command failed on $hostname" $mailto
+ fi
fi
# Now it should be safe to send the snaps
replicate "$zfs send -Rc -I${previous_backup_marker} ${current_backup_marker}"