This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
computing:remote-upgrades [2020/01/27 20:36] – oemb1905 | computing:remote-upgrades [2020/01/27 20:37] – 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), |