backup script completed, all backup taken for 23-Feb
This commit is contained in:
@@ -13,3 +13,23 @@ sshpass -p 'B!r!P46346t@#chQmE=' ssh admin@118.67.214.225 -p 7900 '/export' >> m
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user