pfSense Backup

1. Script for DDNS

Create the following script with name /root/ and make it executable with chmod +x /root/ Replace the ? in the last scp command with the right IP Address

DATE=`date +%Y.%m.%d`
scp /cf/conf/config.xml "$DATE.xml"

2. Schedule the script

Edit crontab using crontab -e. Swith to insert mode by pressing i. Paste the following command 0 13 * * * /root/ Go back to command mode with esc. Save using :wq

3. Server preperation

mkdir -p ~/Data/10.?.0.x/