Mount /cf/conf NFS

  • 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


  • Rebel Alliance Developer Netgate

    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.

  • 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:


    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


    #get test.txt

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

Log in to reply