pfsense ftp betiği
This commit is contained in:
parent
b7fead618a
commit
f882b19579
23
PfsenseBackupConfig.sh
Normal file
23
PfsenseBackupConfig.sh
Normal 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
|
||||||
|
#-------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user