A customer has a very active ZFS partitionon their production system, I need to get a copy of the data under one directory at a specific point in time.
Is it possible to do this with the ZFS snapshot/clone tools, (and what commands should be used to capture the info I require for export from their platform)?
The following is my understanding of what I should do, corrections and clarifications are very welcome.
zfs snapshot $DEVICE@now
cd $MOUNT_POINT
cd .zfs
tar -cvf $HOME/data.tar path/to/directory/of/interest
zfs destroy $DEVICE@now
How wrong am I, do I need to clone the filesystem to access data, if so how...
The snapshot is a PIT copy of all the data in the ZFS, the new device can be an other ZFS that you created.
The ZFS snapshot will grow - quickly if there is a lot of write activity, but the send and recieve operation will send an exact copy of the required data to the new location.
If the customer has a big down on the key exchange then use the following;