copy to another volume

Status
Not open for further replies.

mrbenza

Dabbler
Joined
Sep 26, 2013
Messages
44
hi, I have a simple question .
I have two volumes , a and b ,
what is the most fast method to copy the contents of a to b ?

i think linke
cp -pR /mnt/A/ /mnt/B/ .. correct? Or the are more simply way to do this..
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
ZFS volumes? ZFS replication is the overall best option.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
The manual has instructions.

Note that the destination server field can take localhost or 127.0.0.1 to send the replication to the same machine.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
For replication, A and B need to be datasets. Are they?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
For replication, A and B need to be datasets. Are they?
They're separate pools, judging by the description, so they can only be.
 

mrbenza

Dabbler
Joined
Sep 26, 2013
Messages
44
Thanks all for the reply.. I need to rebuild the my Zpool (Tank), so i need to copy it into another zpool..
i've created a new zpool named backup
i've create new snapshot of entire dataset with recursive option activated activated
now > replication task > destination ok, replicate child ok, localhost ok.. ssh key ok.. task is up to date...
teorically i have the snapshot in /mnt/backup/ (the 2 zpool ) it's right?

and now??:eek::eek:
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874

mrbenza

Dabbler
Joined
Sep 26, 2013
Messages
44
very usefull post depasseg,
but maybe i prefer rsync..
rsync -av /mnt/Tank/A mnt/backup/B is everything I need for my pourpose..

Yes, it will take some time .. but I can wait
Thx all
 
Status
Not open for further replies.
Top