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

[Solved] Where is the command restore ?

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 3 Posters 4.8k 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.
  • L
    lol
    last edited by Nov 10, 2010, 4:32 AM Nov 8, 2010, 6:42 AM

    Hi,
    I'm lokking to the way to restore a dump file I've made with the command "dump"
    But I'm not abble to find it…

    Which package should I install to acces to this command ?

    Thanks.

    A free pastbin without advertising…
    French Debian Community's Wiki

    1 Reply Last reply Reply Quote 0
    • D
      dreamslacker
      last edited by Nov 8, 2010, 7:16 AM

      Do you have a .xml file as your backup file?

      If so, head to Diagnostics -> Backup/ Restore

      1 Reply Last reply Reply Quote 0
      • L
        lol
        last edited by Nov 8, 2010, 8:05 AM Nov 8, 2010, 7:37 AM

        Hi,
        Thanks.
        Lol… No I'm not looking for the backup/restore command of the Gui, but for dump/restore command from the shell.

        The Backup/Restore fonction of the Webgui is sometimes not enough to back to a "healthy" system.
        Sometimes system files are changing then it is not possible (for me) to repair pfSense - I'm sometime not geek enought to repair...  ;)

        The solution I am trying to set up is simple:

        1 partition "healthy" and functional
        1 partition for testing.

        I save the slice "test" with the following command:

        # dump-0Lauf /mnt/slice3/ad4s2a.dump /dev/ad4s2a
        

        But I need to restore it…

        In FreeBSD, the command is:

        # restore-rf /mnt/slice3/ad4s2a.dump
        

        But in the pfSense shell:

        # restore-rf /mnt/slice3/ad4s2a.dump
        restore: Command not found.
        
        

        This requires that I install it:

        # Pkg_add-r restore
        Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/restore.tbz: File unavailable (eg, file not found, no access)
        pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/restore.tbz' by URL
        

        Obviously it does not. The binary file is in a package which I do not know the name …

        That's what I want.

        A free pastbin without advertising…
        French Debian Community's Wiki

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Nov 8, 2010, 4:08 PM

          Unless you made modifications to the filesystem yourself, you only need the config.xml.

          Failing that, the backup package can grab specific directories if you want.

          There is really no need to do that deep of a backup.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • L
            lol
            last edited by Nov 9, 2010, 5:16 AM

            Hi,
            @jimp:

            Unless you made modifications to the filesystem yourself, you only need the config.xml.

            Failing that, the backup package can grab specific directories if you want.

            There is really no need to do that deep of a backup.

            I undestand it's not an usual way to work with pfsense.
            In fact I like to make some (very) little "hack". Like install some packages with pkg_add, activate some features…

            I think it's a good way to "clone" a healthy slice without using some boring & slow tools (like clonezilla...)
            For now I'll do that via ssh or nfs, from a system containing the restore command.

            I'll see later if it's possible to include the restore command in pfsense (I would like to include command in a crontab...)

            Again, thanks for your answer and for the great job you make.

            A free pastbin without advertising…
            French Debian Community's Wiki

            1 Reply Last reply Reply Quote 0
            • L
              lol
              last edited by Nov 10, 2010, 4:32 AM

              Hi,

              It's solved. I just copied the binary from a freeBSD 8.1 to my pfSense. It works…  ;)

              It's a nice tool... In 5 minutes I duplicate a Good slice to a second one.
              So I can continue testing without any stress, I will always be able to start my firewall.

              A free pastbin without advertising…
              French Debian Community's Wiki

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received