pfsense ftp betiği

This commit is contained in:
caylakpenguen 2016-06-11 18:46:45 +03:00
parent b7fead618a
commit f882b19579

23
PfsenseBackupConfig.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# https://forum.pfsense.org/index.php?topic=109612.0
# Author: tcjackal
#Alias
ftphost='ftp.test.local'
user='test'
pass='test123456'
pfname='sube1'
date=`date "+%Y%m%d-%H%M%S"`
#Conf
cd /cf/conf/
#Ftp Login
ftp -n -v $ftphost << EOT
ascii
user $user $pass
prompt
put config.xml $pfname-$date.xml
bye
EOT
#-------