Saturday, February 6, 2010

ZFS snapshot

machine0$ zfs snapshot mypool/myfs@now
machine0$ zfs send mypool/myfs@now > myfile
machine1$ zfs receive anotherpool/anotherfs@anothersnap < myfile

machine0$ zfs send mypool/myfs@now | ssh machine1 zfs receive anotherpool/anotherfs@anothersnap

Remove snapshot
zfs list -H -t snapshot
zfs destroy extra/backup@now