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

    Mount /cf/conf NFS

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 1.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.
    • H
      hec
      last edited by

      Is it possible to mount /cf/conf from NFS server?

      I need a way to save the config or at least the backups to our NFS server which is doing the backups.

      Pfsense 2.1

      thanks

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        AFAIK, no, it's not easily possible. I thought we stripped out the necessary bits for being an NFS client but I may be wrong.

        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
        • A
          Atlantisman
          last edited by

          I assume you want to do this to backup your configs. All you need to do is setup an FTP server on the backup target and use this script:

          #!/bin/bash

          HOST=IP  #This is the FTP servers host or IP address.
          USER=USER            #This is the FTP user that has access to the server.
          PASS=PASS        #This is the password for the FTP user.
          dstamp=date +%Y-%m-%0e

          cd /cf/conf

          Call 1. Uses the ftp command with the -inv switches.  -i turns off interactive prompting. -n Restrains FTP from attempting the aut

          o-login feature. -v enables verbose and progress.

          ftp -inv $HOST << EOF

          Call 2. Here the login credentials are supplied by calling the variables.

          user $USER $PASS

          Call 3. Here you will change to the directory where you want to put or get

          cd /cf/conf/

          Call4.  Here you will tell FTP to put or get the file.

          put config.xml

          chmod 777 config.xml

          rename config.xml config$dstamp.xml

          or

          #get test.txt
          bye
          EOF

          i have this on a daily cronjob and it works very well.

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