rm-r
Contributor
- Joined
- Jan 7, 2013
- Messages
- 166
Hi,
I have found a few threads on backups so I just want to check my thinking as to the process for backing up my main pool to an external drive (I keep off-site) – its my home kit, not business or mission critical.
So, my main pool is made up of 4 x 2tb disks in 2 x mirrors – total of 3.8(ish)TB usable. with around 10 datasets within
I have a 4TB single hdd external USB enclosure
I want to send my main pool to this disk, then take it away to keep off site and do this every week or so.
My proposed process….
Commands;
I have found this post about moving jails
http://forums.freenas.org/threads/relocate-jails-to-ssd-helping-hdd-sleep.16955/#post-89106
in there the awesome Dusan shows the commands as
so adapting this to do the entire pool (step 3 above) mine would be
right?
other considerations;
I have found a few threads on backups so I just want to check my thinking as to the process for backing up my main pool to an external drive (I keep off-site) – its my home kit, not business or mission critical.
So, my main pool is made up of 4 x 2tb disks in 2 x mirrors – total of 3.8(ish)TB usable. with around 10 datasets within
I have a 4TB single hdd external USB enclosure
I want to send my main pool to this disk, then take it away to keep off site and do this every week or so.
My proposed process….
- Attach the USB drive to the freenas machine
- Create a single pool from the entire disk
- Use “zfs send” from my local pool to the usb pool
- Click “detach” via the freenas web gui for the USB pool
- Unplug the usb drive and take off site
Commands;
I have found this post about moving jails
http://forums.freenas.org/threads/relocate-jails-to-ssd-helping-hdd-sleep.16955/#post-89106
in there the awesome Dusan shows the commands as
Code:
zfs snapshot -r main_pool/jails@relocate zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"
so adapting this to do the entire pool (step 3 above) mine would be
Code:
zfs snapshot -r main_pool/ zfs send -R main_pool/ | zfs receive -v USB_pool/
right?
other considerations;
- when i attach the USB again (the next week) will it mount / attach automatically? or should i use "auto import"?
- Restoring in the event of catastrophe
- ?Code:
zfs send -R UB_pool/ | zfs receive -v NEWmain_pool/
- Will the underlying datasets be created on the NEW main_pool or do i need to create them prior to starting the recovery?