Skip to content

Instantly share code, notes, and snippets.

@jagland
Created November 15, 2014 09:40
Show Gist options
  • Save jagland/de1a5df8460039e53ce1 to your computer and use it in GitHub Desktop.
Save jagland/de1a5df8460039e53ce1 to your computer and use it in GitHub Desktop.
pfSense Config Backup
#!/bin/bash
# You need a user called backup on the pfsense box and
# the SSH key of the user running this script shared.
HOSTS=''
for HOST in $HOSTS
do
scp -B -q backup@$HOST:/conf/config.xml ~/pfsense/$HOST-config.xml
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment