pfSense Gold Subscription

Author Topic: Backup/image tool for pfSense 2.4.2 (SOLVED)  (Read 196 times)

0 Members and 1 Guest are viewing this topic.

Offline DeLorean

  • Full Member
  • ***
  • Posts: 140
  • Karma: +19/-0
    • View Profile
Backup/image tool for pfSense 2.4.2 (SOLVED)
« on: December 06, 2017, 10:01:33 am »
Before pfSense 2.4.2 , you could use Win32 Disk Imager to make a backup/image a CF card, SSD or mSata ,
but since version 2.4.2 use GPT partitions, Win32 Disk Imager doesn't recognize this filesystem.

I have tried already Easy Todo Backup,  Acronis Backup (with sector by sector backup).
It shows image completed 100%, but when i use these images on another SSD or mSata,
they won't boot.
With Win32 Disk Imager you could place the image to a identical medium of same size or bigger with no problem.

So my question is, is there a tool like Win32 Disk Imager for Windows, that works properly with pfSense 2.4.2 ?


Thanks in advance.

Best regards
DeLorean
« Last Edit: December 06, 2017, 08:35:18 pm by DeLorean »

Online johnpoz

  • Hero Member
  • *****
  • Posts: 14476
  • Karma: +1341/-200
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Backup/image tool for pfSense 2.4.2
« Reply #1 on: December 06, 2017, 10:45:29 am »
what exactly would be the point of this?  Why would you not have a image you downloaded from pfsense for the specific version your running, and a backup copy of your config.  What data are you trying to save with the image?  Like your proxy cache or something?

In case of failure you just reimage from the pfsense image and restore your backup.

Love to help - just trying to understand the use case of doing such a thing.
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x SG-4860 2.4.2-RELEASE-p1 (home)

Offline DeLorean

  • Full Member
  • ***
  • Posts: 140
  • Karma: +19/-0
    • View Profile
Re: Backup/image tool for pfSense 2.4.2
« Reply #2 on: December 06, 2017, 11:14:06 am »
The main goal is to save the complete pfSense install + packages + settings to a .img file (or other file extention) ,
so that the complete install can be duplicated to a spare storage medium (CF, SSD , HDD or mSata) for in case
of non-booting, dead medium, problems after upgrades etc....

i'm aware of the option config saving, but this doesn't save always all installed packages.

Thank you for the quick reply.


Best regards
DeLorean

 

Online johnpoz

  • Hero Member
  • *****
  • Posts: 14476
  • Karma: +1341/-200
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Backup/image tool for pfSense 2.4.2
« Reply #3 on: December 06, 2017, 11:21:08 am »
hmmm... Very valid use case..

So when you tested this todo backup.. You meant EaseUS todo backup or some other "easy" todo backup?  Did you pick the optimize for ssd option.. Since it sounds like you were doing this test with a SSD.
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x SG-4860 2.4.2-RELEASE-p1 (home)

Offline JKnott

  • Hero Member
  • *****
  • Posts: 984
  • Karma: +36/-4
    • View Profile
Re: Backup/image tool for pfSense 2.4.2
« Reply #4 on: December 06, 2017, 11:22:13 am »
There are many utilities that can save a disk image.  You can even boot Linux from a USB drive/CD/DVD and use dd to back up the entire partition.  I expect you could do the same with one of the *BSDs.  You don't need a tool specific to pfSense.

Offline DeLorean

  • Full Member
  • ***
  • Posts: 140
  • Karma: +19/-0
    • View Profile
Re: Backup/image tool for pfSense 2.4.2
« Reply #5 on: December 06, 2017, 11:59:08 am »
hmmm... Very valid use case..

So when you tested this todo backup.. You meant EaseUS todo backup or some other "easy" todo backup?  Did you pick the optimize for ssd option.. Since it sounds like you were doing this test with a SSD.

Sorry, my mistake.
I did meant EaseUS Todo Backup :-)
I didn't tried a SSD yet, i'm still stuck imaging a CF card with a full pfSense 2.4.2 install.


There are many utilities that can save a disk image.  You can even boot Linux from a USB drive/CD/DVD and use dd to back up the entire partition.  I expect you could do the same with one of the *BSDs.  You don't need a tool specific to pfSense.

I'm aware of those disk image utilities and boot possibilities,
Acronis can also be used for this purpose.(i use Acronis for almost 10 years)
I'm a IT Technician for more then 14 years and maintain different pfSense systems,
booting "offline" with a usb drive doesn't always work on all systems.
So i like to prefer to use a tool like Win32 Disk Imager like i did before.
Untill version 2.4.2 was released,i made a image of a CF card to a .IMG file,
and in case of malfunction, or odd problem, i could simple placed back the image,
or choose a image of a previous (older) pfSense version.
This method did always what i wanted.

Since pfSense version 2.4.2 i noticed that the medium is no more detected by Win32 Disk Imager,
because this pfSense use the GPT partition layout.
With previous pfSense versions, this was the wellknown MBR partition layout.


Thank you for the replies.


Best regards
DeLorean

Offline conor

  • Newbie
  • *
  • Posts: 23
  • Karma: +4/-0
    • View Profile
Re: Backup/image tool for pfSense 2.4.2
« Reply #6 on: December 06, 2017, 02:34:50 pm »
Personally I use a freebsd usb stick that I have set up that i can boot into and then create an image using dd. The only trick was to set up the serialconsole settings correctly.

I also have a ubuntu PC which was an old windows dektop and has SD, CF and usb ports etc, in the past i have just used that machine for taking images of cards.

Have moved to the usb stick due to that fact that there are more and more SoC routers with onboard memory.

Offline DeLorean

  • Full Member
  • ***
  • Posts: 140
  • Karma: +19/-0
    • View Profile
Re: Backup/image tool for pfSense 2.4.2 (SOLVED)
« Reply #7 on: December 06, 2017, 08:47:05 pm »
UPDATE

The major problem was that my Windows 7 pc that i always use for the imaging,
wouldn't let my assign a driveletter to the CF card.
Also not with 3th party disk managing tools like Acronis Disk Director Suite, AOMEI Partition Assistant etc...
Without a driveletter Win32 Disk Imager won't recognize the CF card, so no imaging.

When i plugged the USB to CF cardreader in a pc with XP,
it ask immediately if i wanted to format the CF card, after ignoring this,
i saw that the CF card automatic received a driveletter.
After that, i made a succesfully image with Win32 Disk Imager.  ;D

Thanks to everyone for the tips and suggestions.


Best regards
DeLorean