在BIG-IP
bash
vi /root/backup.sh
#!/bin/bash
hostname=BIG-IP1
date=`date "+%Y%m%d"`
retention=`date --date="1 month ago" +"%Y%m%d"`
tmsh save sys ucs "$hostname"_"$date"
scp /var/local/ucs/"$hostname"_"$date".ucs bigipuser@xxx.xxx.xxx.xxx:/home/bigipuser
if [ -f /var/local/ucs/"$hostname"_"$retention".ucs ]; then
tmsh delete sys ucs "$hostname"_"$retention".ucs
fi
chmod 755 /root/backup.sh
vi /etc/crontab
0 4 * * * root /root/backup.sh
ssh-keygen -t rsa
cat /root/.ssh/identity.pub
記住output的內容
在Backup Server, 使用bigipuser登入, 輸入剛才的內容到以下file
vi /home/bigipuser/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAA........vbuE= Host Processor Superuser