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

    Pfsense Remote Backup

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 1.9k 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.
    • I Offline
      Iahmad
      last edited by

      dear all,

      i am running pfsense 2.3.2-p1 and i am finding way to remotely bachup config.xml on my lan PC automatically, i read many threads but didn't understand how to do. please guide step by step.

      pfsense Box: 172.16.1.1
      Backup PC: 172.16.2.4

      I am a average geek so please forgive the questions if they seem like they should be understood.

      1 Reply Last reply Reply Quote 0
      • H Offline
        heper
        last edited by

        Google: scp public key crontab

        Don't have full-blown tutorial for you

        1 Reply Last reply Reply Quote 0
        • I Offline
          Iahmad
          last edited by

          ok you are right dear

          https://doc.pfsense.org/index.php/Remote_Config_Backup

          it only three step but don't know where to put these commands.

          just guide little

          1 Reply Last reply Reply Quote 0
          • DerelictD Offline
            Derelict LAYER 8 Netgate
            last edited by

            Create an ssh key pair on your host computer

            Add the public key to /root/.ssh/authorized_keys on pfSense

            scp root@pfsense_ip_address_or_hostname:/conf/config.xml /local/path/config.xml

            Regarding rotating different backups based on timestamps, etc, get to scripting. Probably easier just to #buygold

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • I Offline
              Iahmad
              last edited by

              @Derelict:

              Create an ssh key pair on your host computer

              Add the public key to /root/.ssh/authorized_keys on pfSense

              scp root@pfsense_ip_address_or_hostname:/conf/config.xml /local/path/config.xml

              Regarding rotating different backups based on timestamps, etc, get to scripting. Probably easier just to #buygold

              dear Mr. derelict,

              i didn't find any directory .SSH under root directory

              1 Reply Last reply Reply Quote 0
              • DerelictD Offline
                Derelict LAYER 8 Netgate
                last edited by

                mkdir .ssh

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • JeGrJ Offline
                  JeGr LAYER 8 Moderator
                  last edited by

                  or just do it in the webgui under "System / Users" and add the public key content to the admin user.

                  Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                  If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                  1 Reply Last reply Reply Quote 0
                  • DerelictD Offline
                    Derelict LAYER 8 Netgate
                    last edited by

                    Or do that. Duh.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

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