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

    BACKUP FROM SHELL

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 15.0k 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.
    • S
      StefPar
      last edited by

      Hello guys, im new in pfSense and i know this question may exist in other post but i don't find something. I want the commands for backup latest confuguration from shell without rrd data, i want to create a script for auto backup to a client pc.
      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        See: https://doc.pfsense.org/index.php/Remote_Config_Backup
        If running the script on the pfSense box just copy off the /conf/config.xml file.

        Steve

        1 Reply Last reply Reply Quote 0
        • S
          StefPar
          last edited by

          Thanks Steve, because my network is an offline network i can't use auto backup package so if you can i need an example about backup from console..

          thanks

          1 Reply Last reply Reply Quote 0
          • J
            jhochwald
            last edited by

            @StefPar:

            Thanks Steve, because my network is an offline network i can't use auto backup package so if you can i need an example about backup from console..

            thanks

            Try this:

            #/bin/cp /cf/conf/config.xml /mnt/backup/pfconfig/config-`hostname`-$myDate.xml
            

            This should make a copy of your configuration to /mnt/backup/pfconfig just adjust this to the location where you want to have it. In my case, this is an SDCARD.

            Regards

            /JH

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