pfsense:restore_from_backup
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pfsense:restore_from_backup [2020/05/13 21:08] – created peter | pfsense:restore_from_backup [2022/03/03 10:08] (current) – [Add the Backup file to the USB] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PFSense - Restore from Backup ====== | ====== PFSense - Restore from Backup ====== | ||
- | Download the OS image of pfSense | + | ===== Download |
+ | |||
+ | Go to https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * Architecture: | ||
+ | * Installer: | ||
+ | * Console: | ||
+ | |||
+ | Choose different options as required. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Burn the pfSense | ||
+ | |||
+ | <code bash> | ||
+ | sudo dd if=pfSense-CE-memstick-2.4.5-RELEASE-amd64.img | ||
+ | </ | ||
+ | |||
+ | <WRAP alert> | ||
+ | **ALERT**: | ||
+ | |||
+ | If you make a mistake here, you might overwrite your hard drive! | ||
+ | |||
+ | There are many ways to check which device is connected to the USB including: | ||
+ | |||
+ | < | ||
+ | dmesg | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | ... | ||
+ | [411849.265872] usb 3-2: new high-speed USB device number 6 using xhci_hcd | ||
+ | [411849.418209] usb 3-2: New USB device found, idVendor=048d, | ||
+ | [411849.418210] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | ||
+ | [411849.418211] usb 3-2: Product: Disk 2.0 | ||
+ | [411849.418212] usb 3-2: Manufacturer: | ||
+ | [411849.418212] usb 3-2: SerialNumber: | ||
+ | [411849.418481] usb-storage 3-2:1.0: USB Mass Storage device detected | ||
+ | [411849.418603] scsi host12: usb-storage 3-2:1.0 | ||
+ | [411850.422697] scsi 12:0:0:0: Direct-Access | ||
+ | [411850.422989] sd 12:0:0:0: Attached scsi generic sg1 type 0 | ||
+ | [411850.423703] sd 12:0:0:0: [sdb] 3891200 512-byte logical blocks: (1.99 GB/1.86 GiB) | ||
+ | [411850.423817] sd 12:0:0:0: [sdb] Write Protect is off | ||
+ | [411850.423819] sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00 | ||
+ | [411850.423936] sd 12:0:0:0: [sdb] No Caching mode page found | ||
+ | [411850.423941] sd 12:0:0:0: [sdb] Assuming drive cache: write through | ||
+ | [411850.426796] | ||
+ | sdb2: <bsd: sdb5 > | ||
+ | [411850.427528] sd 12:0:0:0: [sdb] Attached SCSI removable disk | ||
+ | </ | ||
+ | |||
+ | In this example, the device is shown as **sdb**. | ||
+ | </ | ||
+ | |||
+ | If you are using Windows, use Rufus: https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Add the Backup file to the USB ===== | ||
+ | |||
+ | pfSense | ||
+ | |||
+ | After writing the installer image to the USB drive, you might see a partition named FATRECOV. | ||
+ | |||
+ | Otherwise, copy the backup file, named config.xml onto another USB drive, in the root directory. | ||
+ | |||
+ | <WRAP todo> | ||
+ | **TODO:** Check if this works: To Restore the config. | ||
+ | |||
+ | To have the pfSense installer apply the config automatically at the end of the installation, | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** An alternative to booting up from USB is to connect using a Console Cable. | ||
+ | |||
+ | See: [[PFSense: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Boot from the USB ===== | ||
+ | |||
+ | Connect USB drive. | ||
+ | |||
+ | Start the router device. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Restore ===== | ||
+ | |||
+ | Choose **Recover config.xml** when the option appears. | ||
+ | |||
+ | Pick the existing installation drive (e.g. ada0), the selection list shows the disk name, size, and filesystem type which is typically enough to identify the disk. | ||
+ | |||
+ | Proceed through the installation as usual. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// |
pfsense/restore_from_backup.1589404099.txt.gz · Last modified: 2020/07/15 09:30 (external edit)