Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Creating an image of the OPNsense disk (PC hardware) as a fall-back
« previous
next »
Print
Pages: [
1
]
Author
Topic: Creating an image of the OPNsense disk (PC hardware) as a fall-back (Read 3194 times)
bongo
Jr. Member
Posts: 94
Karma: 3
Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
on:
March 27, 2022, 01:23:05 pm »
i know, this has been discussed before, but i couldn't find the perfect answer.
i'm actually running 21.7 on a pc hardware, equipped with just an ssd where just OPNsense is installed and running, as well as a few network cards.
before updating to 22.1, i would like to create an image copy of the whole disk, which would allow me to get back to 21.7 asap if i recognize any issues with 22.1, as it is essential for me to have a working internet connection.
i think the best way to do so would be to either attach an usb stick or an usb disk drive which allows to boot from, and access the built-in OPNsense ssd to write an image copy to either an usb stick or a dvd.
if something fails, i could just again boot from this usb stick or cd and restore the generated copy back to the built-in ssd.
what's recommended to do so and is there a step-by-step instruction on how to do it?
or is there a better way to get a copy of the whole system?
or what's the best strategy to always have a fall-back solution at hand if something fails?
Logged
bartjsmit
Hero Member
Posts: 2014
Karma: 194
Re: Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
Reply #1 on:
March 27, 2022, 02:25:29 pm »
Apart from backing up your config through System, Configuration, Backups, you can boot your OPNsense machine from Clonezilla and backup the entire SSD either to a local drive or across the network to a file server.
https://clonezilla.org/clonezilla-live.php
For the first option, restore is by offering the downloaded file during the OPNsense installation and for the second is booting from Clonezilla live again.
Note that the Clonezilla backup involves down time of your firewall while the config backup does not.
Bart...
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
Reply #2 on:
March 28, 2022, 05:00:01 pm »
The "cpdup" utility is also installed and can do some funky stuff like remote backup and restore if needed.
Cheers,
Franco
Logged
spi39492
Newbie
Posts: 24
Karma: 0
Re: Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
Reply #3 on:
July 08, 2022, 06:24:31 pm »
I'Ve done that with zfs snapshots, please see
https://github.com/opnsense/plugins/issues/2976#issuecomment-1179162143
Logged
Patrick M. Hausen
Hero Member
Posts: 6796
Karma: 571
Re: Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
Reply #4 on:
July 08, 2022, 09:36:42 pm »
dd, gzip and ssh are in the base system. What else does one need?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
spi39492
Newbie
Posts: 24
Karma: 0
Re: Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
Reply #5 on:
July 09, 2022, 09:51:52 am »
Quote from: pmhausen on July 08, 2022, 09:36:42 pm
dd, gzip and ssh are in the base system. What else does one need?
True - but you need to boot from a live system at least to restore the data. If you have zfs you can from within the production system create snapshots and revert back without the need to boot from a live system. After rollback just a reboot is needed.
Logged
Patrick M. Hausen
Hero Member
Posts: 6796
Karma: 571
Re: Creating an image of the OPNsense disk (PC hardware) as a fall-back
«
Reply #6 on:
July 09, 2022, 10:33:49 am »
I wasn't intending to answer you, looks like you beat me postin by just a moment. Of course snapshots are great, I'm a strong proponent of using ZFS everywhere.
But if you want an offline image all you really need is already on the system. Same for restore from a live image.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Creating an image of the OPNsense disk (PC hardware) as a fall-back