User Tools

Site Tools


computing:remote-upgrades

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
computing:remote-upgrades [2020/01/27 20:36] oemb1905computing:remote-upgrades [2020/01/27 20:37] oemb1905
Line 58: Line 58:
   #!/bin/bash   #!/bin/bash
   hosts="server.com 10.55.55.9"   hosts="server.com 10.55.55.9"
- 
   #run on each host   #run on each host
- 
   for i in $hosts;   for i in $hosts;
- 
   do   do
- 
     echo "I will now update" $i;     echo "I will now update" $i;
     #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), then use something like these configurations below. If you would prefer to do these types of backups with a vpn connection (instead of port forwarding), then use something like these configurations below.
computing/remote-upgrades.txt · Last modified: 2020/01/27 20:42 by oemb1905