This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:remote-upgrades [2020/01/27 20:36] – oemb1905 | computing:remote-upgrades [2020/01/27 20:42] (current) – oemb1905 | ||
---|---|---|---|
Line 58: | Line 58: | ||
#!/bin/bash | #!/bin/bash | ||
hosts=" | hosts=" | ||
- | |||
#run on each host | #run on each host | ||
- | |||
for i in $hosts; | for i in $hosts; | ||
- | |||
do | do | ||
- | |||
echo "I will now update" | echo "I will now update" | ||
#ssh -t $i sudo apt-remote; | #ssh -t $i sudo apt-remote; | ||
ssh -t $i screen -S aptremotescreen sudo apt-remote; | ssh -t $i screen -S aptremotescreen sudo apt-remote; | ||
- | |||
done; | done; | ||
- | |||
If you would prefer to do these types of backups with a vpn connection (instead of port forwarding), | If you would prefer to do these types of backups with a vpn connection (instead of port forwarding), | ||
Line 76: | Line 70: | ||
Option 1 - Using vpn connection, connect from localhost to remote host/server with ssh and screen, and then execute a script on the server that uses rsync over ssh to send its backup to target backup host on its LAN: | Option 1 - Using vpn connection, connect from localhost to remote host/server with ssh and screen, and then execute a script on the server that uses rsync over ssh to send its backup to target backup host on its LAN: | ||
- | Use this script on your localhost: [[https:// | + | Use this script on your localhost: [[https:// |
Use this script on the remote host that you are backing up: [[https:// | Use this script on the remote host that you are backing up: [[https:// | ||