Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Full backup: Clonezilla does not support pfSense filesystem, any other, please??

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 4 Posters 4.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pedreter
      last edited by

      I would like to have full backups (not just configurations) with full-disk-images so if something goes wrong, backtracking is very easy…

      Norton Ghost, DriveImage, Clonezilla etc, do not not support pfSense filesystem (and i cannot use "dd" due to size limitations)..

      Does anyone know a way to perform the "total_super_mega_full" backup, please??? how are you doing in this case? (my machines are not virtual).

      Thanks in advance,

      Pedretrer.

      1 Reply Last reply Reply Quote 0
      • Cry HavokC
        Cry Havok
        last edited by

        When you say size limitations - size limitations where? I've imaged 200GB+ disks before using dd.

        1 Reply Last reply Reply Quote 0
        • P
          pedreter
          last edited by

          Hi Cry Havok…

          with size limitations i mean that my disk is 500GB but i use < 1GB and i need to put the drive image into a USB key...

          Thanks,

          Pedreter...

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            Well if the part of the disk you're using is only the first GB, then just dd this first GB.
            You can specify a size with dd.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • P
              pedreter
              last edited by

              Thanks Gruens…

              it is a good idea, but you assumes that the information is all togheter at the beginning of the disk, but in real life, it may be anywhere in the disk... (i am not an expert in UFS but i guess this is how it works)

              i am just looking for a quick bare metal restore system....

              Thanks,

              Pedreter.

              1 Reply Last reply Reply Quote 0
              • Cry HavokC
                Cry Havok
                last edited by

                If you have a single 1 GB partition it will be at the start of the disk. If you have a 500 GB partition that has 1 GB of data then yes, the data may be anywhere.

                Which describes your situation?

                1 Reply Last reply Reply Quote 0
                • P
                  pedreter
                  last edited by

                  The second one, Cry Havok… it is a 500GB partition and only 1GB used...

                  I am starting wondering if the solution may be to have much smaller partitions...

                  1 Reply Last reply Reply Quote 0
                  • Cry HavokC
                    Cry Havok
                    last edited by

                    A smaller partition would help a lot.

                    You may get away with a dd image of the boot sector and an rsync snapshot of the data. You'll probably be a lot better off starting from fresh with a partition slightly smaller than your USB stick (so, if you have an 8 GB USB stick go for a partition no more than 7.75 GB).

                    1 Reply Last reply Reply Quote 0
                    • P
                      pedreter
                      last edited by

                      I agre, Cry Havok… the only issue is that the FW is in production right now... :-( so i cannot modify partitions...

                      i am not used to rsync, but... can i use it (obviously with an unmounted partition) to copy ALL the partition??? including /dev and so on...??? are you sure???

                      Pedreter.

                      1 Reply Last reply Reply Quote 0
                      • Cry HavokC
                        Cry Havok
                        last edited by

                        It copies the contents of the partition (and you can use it on a live partition), not the partition itself.

                        At this point however if you're after a bare metal recovery your only sensible option is to create a duplicate, using the built in backup and recovery options. Size that to suit your intended backup/recovery solution. Skimping on doing it right now isn't going to help you down the line.

                        1 Reply Last reply Reply Quote 0
                        • GruensFroeschliG
                          GruensFroeschli
                          last edited by

                          @pedreter:

                          The second one, Cry Havok… it is a 500GB partition and only 1GB used...

                          I am starting wondering if the solution may be to have much smaller partitions...

                          D'oh.
                          I assumed it's just a 1GB partition ^^"

                          But since most of these 500GB are empty… you should be able to compress it on the fly.
                          something like

                          
                            # dd if=/dev/hda conv=sync,noerror bs=64K | gzip -c  > /mnt/sda1/hda.img.gz
                          
                          

                          (yes it's linux and not freebsd)
                          But i dont really know if dd and gzip on freebsd are chainable.

                          EDIT:
                          I think this page shows you the available solutions :)
                          http://www.wonkity.com/~wblock/docs/html/backup.html
                          It seems using "dump" combined with gzip should do best what you're trying to do.

                          We do what we must, because we can.

                          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                          1 Reply Last reply Reply Quote 0
                          • dotdashD
                            dotdash
                            last edited by

                            Are you running a bunch of packages, have you customized something?
                            A backup and restore of the config is usually the best way to do this, and it fits on a usb key.
                            I like to have spare pfsense boxes around with enough interfaces, so I can grab one, restore the config and swap it in case of disaster. Much easier (IMHO) than trying to restore an image. Again the circumstances might be different if you had to re-create some customization/hacking, or had complex packages installed.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.