Changes between Version 5 and Version 6 of FreeBSD ZFS Backup & Restore Full Instructions


Ignore:
Timestamp:
02/01/24 05:52:13 (4 months ago)
Author:
Paul Kulda
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSD ZFS Backup & Restore Full Instructions

    v5 v6  
    2222
    2323* to '''backup''' the zfs volume do the following :
    24   * zfs snapshot zroot/ROOT/default@backup
     24  * '''zfs snapshot zroot/ROOT/default@backup'''
    2525  * 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.
    2727  * please '''Do Not''' zip the file
    2828  * you can for archiving purposes, but you need the raw file to restore.
     
    5050        * Run dhclient <interface> to get connected to a network
    5151        * 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)
    5264
    5365
     66
     67
     68