Changes between Version 5 and Version 6 of FreeBSD ZFS Backup & Restore Full Instructions
- Timestamp:
- 02/01/24 05:52:13 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSD ZFS Backup & Restore Full Instructions
v5 v6 22 22 23 23 * to '''backup''' the zfs volume do the following : 24 * zfs snapshot zroot/ROOT/default@backup24 * '''zfs snapshot zroot/ROOT/default@backup''' 25 25 * then to do the actual backup 26 * zfs send zroot/ROOT/default@backup > backup.zfs(destination file does not matter but the @backup does, restore name must match.26 * '''zfs send zroot/ROOT/default@backup > backup.zfs''' (destination file does not matter but the @backup does, restore name must match. 27 27 * please '''Do Not''' zip the file 28 28 * you can for archiving purposes, but you need the raw file to restore. … … 50 50 * Run dhclient <interface> to get connected to a network 51 51 * then mount_nfs - o soft ipaddress:/<mountpoint> 52 * verify you see the file(s) you are going to restore in /tmp/tmp 53 * for usb drive 54 * plug in usb drive note the device that comes up usually /dev/da(x) 55 * mount the usb drive using mount /dev/da(x) /tmp/tmp 56 * verify you see the file(s) you are going to restore in /tmp/tmp 57 58 * ok now for the restore 59 * '''zfs receive -F zroot/ROOT/default@backup < backup.zfs''' 60 * '''IMPORTANT mountpoint and volume location and @ must match to what was used above.''' 61 * From here the backup file should restore, time is dependant on how much data 62 * when you get a command prompt type reboot to restart, 63 * unplug any usb devices (ie dvd, usb drives etc) 52 64 53 65 66 67 68