Created
November 15, 2014 09:40
-
-
Save jagland/de1a5df8460039e53ce1 to your computer and use it in GitHub Desktop.
pfSense Config Backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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