#!/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 echo "Done Mikrotik" echo "WSL Backup" cp -r /home/mosiur/scripts/ wsl echo "Firewall Backup" sshpass -p 'AD^%$bhy34Fw26@mnf234@97tr45' ssh mosiur@118.67.210.46 -p 7900 "show full-configuration" >> fortigate/fortigate-$DATE.conf echo "git" if ! git diff --quiet; then git add . git commit -m "all backup $DATE" git push fi