added backup script for mikrotik, mikrotik backup for 23-feb taken
This commit is contained in:
15
backup-script.sh
Normal file
15
backup-script.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
DATE=$(date +%F)
|
||||
|
||||
#echo $DATE
|
||||
|
||||
echo "Backing up Wifi router"
|
||||
sshpass -p '!CL46#$)CL0uD#@eNT%(*#$5FrgE' ssh admin@163.53.151.2 -p 7900 '/export' >> mikrotik/cloud-wifi-mkt-rtr-$DATE.conf
|
||||
|
||||
echo "Backing up RND Router"
|
||||
sshpass -p 'B!r!P46346t@#chQmE=' ssh admin@118.67.214.225 -p 7900 '/export' >> mikrotik/RND-mkt-rtr-$DATE.conf
|
||||
#sshpass -p '!"N@zud@br!11!@nT@%$%^-oh65v8346@#45' ssh admin@118.67.220.34 -p 7900 '/export' >> mgt-mkt-rtr-$DATE.conf
|
||||
|
||||
echo "Backing up MGT Router"
|
||||
sshpass -p 'N@zud@br!11!@nT@%$%^-oh65v8346@#45' ssh -o HostKeyAlgorithms=+ssh-dss -o PubkeyAcceptedAlgorithms=+ssh-rsa admin@118.67.220.34 -p 7900 /export >> mikrotik/mgt-mkt-rtr-$DATE.conf
|
||||
Reference in New Issue
Block a user