SOLVED How does one copy a Dataset from volume to volume?

Status
Not open for further replies.

mike360x1

Contributor
Joined
Dec 25, 2012
Messages
107
Hi,

So I've recently thought of giving my NAS a small upgrade, so I've added 2 SSDs in a mirror vdev to allocate space for fast and frequent running applications. As well as common files.

Currently, I'm not sure how I should move over the data while still being able to retain the dataset hierarchy.
IE: my plugins folder currently includes many datasets which I want to still show up in the next volume so I can easily access their permissions and other settings.

Unfortunately, I only know of Rsync.
But I've heard of ZFS send/receive, not sure how that works.

Is my only option to copy data from each dataset individually? Or is there some all encompassing command?

Thank you in advance,
Michael L.

EDIT: I did a bit of research and used this command.
Code:
zfs send Default/PluginsJail@ssdtrans | zfs recv SSDPlugin/PlugStore 

This is a Picture of my Volumes for context.

After the transfer completed, I checked the folders in VIA SSH and found that there were folders inside the directory I copied to but nothing in those folders.
Are snapshots not recursive?
So do I have to apply that same command above again but for each sub-dataset?
 
Last edited:

mike360x1

Contributor
Joined
Dec 25, 2012
Messages
107
Status
Not open for further replies.
Top