Transfer data from tank to dataset

Status
Not open for further replies.

ddogg777

Cadet
Joined
Sep 12, 2011
Messages
9
Noob question as I am still learning this on the little free time that we have. I initially created a volume and started storing all of my data (3.7 tB) in the main tank. Now I see I would like to create datasets and move the data from the main tank into appropriate sets. What is the easiest way to do this?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
From the command line a dataset appears just like a subdirectory/folder. Just copy or move your stuff from the command line like this:

mv /mnt/tank/original-folder /mnt/tank/dataset/

or if you want to copy you could either use "cp -a" or "rsync -a" instead of the "mv" command above.
 

ddogg777

Cadet
Joined
Sep 12, 2011
Messages
9
From the command line a dataset appears just like a subdirectory/folder. Just copy or move your stuff from the command line like this:

mv /mnt/tank/original-folder /mnt/tank/dataset/

or if you want to copy you could either use "cp -a" or "rsync -a" instead of the "mv" command above.

Thanks, that works. What would be the command if I wanted to move all the folders and files from /mnt/Tank to mnt/Tank/dataset in one fail swoop?
I suppose I would need to exclude "dataset" from such a command...
 
Status
Not open for further replies.
Top