BloodyBonkers
Dabbler
- Joined
- Sep 17, 2017
- Messages
- 21
Hello, I am unsure how I should formulate the zfs send zfs receive command to replicate all data from my main FreeNAS box(Freenas1) to a new temporary FreeNAS box(Freenas2).
Here's the information I believe is relevant:
Freenas1 has the pool name Volume1 with a primary dataset named Volume1 and has the IP 192.168.2.201 (FreeNAS-11.2-MASTER-201807080450)
Freenas2 has the pool name Volume2 with a primary dataset named Volume2 and has the IP 192.168.2.185 (FreeNAS-11.2-BETA1)
Snapshot of dataset Volume1 on Freenas1 has been made with fullname: Volume1@volume1
After changing the pool configuration on Freenas1 and going back to (FreeNAS-11.2-BETA1) I will also need to move all the data back again.
This is what I came up with and I would like a confirmation or a correction before I try using it.
From Freenas1 to Freenas2:
zfs send Volume1/Volume1@volume1 | ssh 192.168.2.185 zfs recv Volume2/Volume1
back from Freenas2 to Freenas1
zfs send Volume2/Volume1@"snapshot name" | ssh 192.168.2.201 zfs recv Volume1/Volume1
Here's the information I believe is relevant:
Freenas1 has the pool name Volume1 with a primary dataset named Volume1 and has the IP 192.168.2.201 (FreeNAS-11.2-MASTER-201807080450)
Freenas2 has the pool name Volume2 with a primary dataset named Volume2 and has the IP 192.168.2.185 (FreeNAS-11.2-BETA1)
Snapshot of dataset Volume1 on Freenas1 has been made with fullname: Volume1@volume1
After changing the pool configuration on Freenas1 and going back to (FreeNAS-11.2-BETA1) I will also need to move all the data back again.
This is what I came up with and I would like a confirmation or a correction before I try using it.
From Freenas1 to Freenas2:
zfs send Volume1/Volume1@volume1 | ssh 192.168.2.185 zfs recv Volume2/Volume1
back from Freenas2 to Freenas1
zfs send Volume2/Volume1@"snapshot name" | ssh 192.168.2.201 zfs recv Volume1/Volume1