Creating a backup of /root etc.
-
I want to create a bootable drive that I can use to backup some data from my pfSense box. I have created a USB install drive and I would like to create a 4th partition and format it UFS so I can copy data to it.
Here is my what my USB drive looks like:
# gpart show => 63 234441585 ada0 MBR (112G) 63 234441585 1 freebsd [active] (112G) => 0 234441585 ada0s1 BSD (112G) 0 16 - free - (8.0K) 16 217664353 1 freebsd-ufs (104G) 217664369 16777216 2 freebsd-swap (8.0G)
I tried: gpart add -t freebsd-ufs da0s4 and I get gpart: No such geom da0s4.
pfSene Plugin Bug
Just in case there is someone from the development team watching the backup plugin can not backup /root because the backup file is stored in /root and it creates a recursive condition that generates a huge file and php runs out of memory. -
Why would you want to do this? Just back up the config, have some install media around... Worse case you install pfsense clean and restore you backup.
You can just use the ACB as well
https://docs.netgate.com/pfsense/en/latest/backup/autoconfigbackup.html -
@johnpoz said in Creating a backup of /Root etc.:
Why would you want to do this? Just back up the config, have some install media around... Worse case you install pfsense clean and restore you backup.
You can just use the ACB as well
https://docs.netgate.com/pfsense/en/latest/backup/autoconfigbackup.html@johnpoz thanks for the input - here's what I'm trying to accomplish. I have some custom stuff that I would like to backup to a flash drive and be able to restore without depending on the network or another computer (just the pfSense box). Most of it is in root, and I have also created a user CUSTOM which is under /home/custom - I hope that I won't have to use it, but just in case something gets lost I want a fallback.
Also note that as it stands the backup plugin can not backup root (see note above) - I don't know if Netgate is the maintainer or if it is someone else.
As for the autoconfigbackup, I would love to use it, but I would rather have it point to a box inside my firewall - call me paranoid, but I keep finding out that things we thought were secure, aren't because of error or improvements in hacking tools. If it is never in the cloud, then it can't get stolen from the cloud.
@johnpoz as an aside ". Worse case you install pfsense clean and restore you backup." - I it was just the base pfSense, I would agree with you completely .... but what about a use case where there are a lot of plugins? How does one make sure none of them have changed since they were installed/disappeared from the plugin repo? I had a problems several years back where I couldn't get the config to restore properly without connectivity, and I couldn't get connectivity with a working pfSense. I think that some changes have been made since then, but it is so long ago all I can remember is that I had a very uncomfortable several hours trying to get things back up.