Hi Guys,
I need to create a Encrypted Volume, backup it and transfer to another FreeBSD machine without SSH access.
I was successful in doing this, but I don't know if I do it the best way. If there is a better way,, please let me know.
1 - First I create de zroot Volume
$ zfs create -V 1g zroot/PrivateVolume
2 - Encrypt with GELI
$ geli init -s 4096 /dev/zvol/zroot/PrivateVolume
3 - Attach Volume
$ geli attach /dev/zvol/zroot/PrivateVolume
4 - Create UFS Filesystem on the Volume
$ newfs /dev/zvol/zroot/PrivateVolume.eli
4 - Mount Volume
$ mount /dev/zvol/zroot/PrivateVolume.eli /mnt/
5 - Move my Confidencial Business files
$ cp anyConfidencial /mnt
6 - Umount Volume
$ umount /mnt
7 - Detach Encrypted Volume
$ geli detach /dev/zvol/zroot/PrivateVolume
8 - Create a Backup of Volume
$ zfs send zroot/PrivateVolume > backup.private
On another FreeBSD Machine:
$ zfs create -V 1g zroot/PrivateVolume
$ zfs receive -F zroot/PrivateVol < backup.private
This works well, but exist another best way to do it? Something more practical and simple?
On MacOS, I just create Encrypted Volume throw Disk Utility and set a Password for my .img image created.
In FreeBSD it's a lot of steps.
Thanks,
Grether
I need to create a Encrypted Volume, backup it and transfer to another FreeBSD machine without SSH access.
I was successful in doing this, but I don't know if I do it the best way. If there is a better way,, please let me know.
1 - First I create de zroot Volume
$ zfs create -V 1g zroot/PrivateVolume
2 - Encrypt with GELI
$ geli init -s 4096 /dev/zvol/zroot/PrivateVolume
3 - Attach Volume
$ geli attach /dev/zvol/zroot/PrivateVolume
4 - Create UFS Filesystem on the Volume
$ newfs /dev/zvol/zroot/PrivateVolume.eli
4 - Mount Volume
$ mount /dev/zvol/zroot/PrivateVolume.eli /mnt/
5 - Move my Confidencial Business files
$ cp anyConfidencial /mnt
6 - Umount Volume
$ umount /mnt
7 - Detach Encrypted Volume
$ geli detach /dev/zvol/zroot/PrivateVolume
8 - Create a Backup of Volume
$ zfs send zroot/PrivateVolume > backup.private
On another FreeBSD Machine:
$ zfs create -V 1g zroot/PrivateVolume
$ zfs receive -F zroot/PrivateVol < backup.private
This works well, but exist another best way to do it? Something more practical and simple?
On MacOS, I just create Encrypted Volume throw Disk Utility and set a Password for my .img image created.
In FreeBSD it's a lot of steps.
Thanks,
Grether