We have a Windows 2008R2 server with a very large attached SCSI drive array. I have a directory on that drive set up as an NFS export. I can mount that share to our Solaris 10 box with ZFS filesystems. But there doesn't seem to be anything in the syntax of the zfs send command that will allow me to send a snapshot to that directory. In fact, it seems to say that it has to be of the same filesystem type. Any thoughts on this?
Yes you can. ‘zfs send’ lets you take a snapshot of ZFS filesystems and output it to a file or stream it into another command. In your situation, you want to send the stream to a file which is stored on the NFS filesystem.
The first step with using ‘zfs send’ is to take a snapshot of the filesystem. Since snapshots are read-only, you do not have to worry about files being written at the time you run ‘zfs send’. Making a snapshot can be done by using zfs snapshot “filesystems name” like so.
# zfs snapshot tank/dataset@20121129
Now you can redirect the zfs send stream to a file:
It's very important, as with any backup, to validate the backup is good. It's no use taking backups if the backups are useless when it comes time to use them. It's useful to use /usr/sbin/zstreamdump to parse the newly created stream to verify no errors.
To use the backup file from a ‘zfs send’ output you just need to stream or pipe it in to ‘zfs receive’. As with 'zfs send' there are may options and arguments to 'zfs receive'. The basic syntax would be: