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
Next revision
Previous revision
computing:remote-upgrades [2020/01/27 20:36] oemb1905computing:remote-upgrades [2020/01/27 20:42] (current) 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.
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://repo.haacksnetworking.com/oemb1905/haackingclub/blob/master/backups/option1/localhost.shm|localhost.sh]]+Use this script on your localhost: [[https://repo.haacksnetworking.com/oemb1905/haackingclub/blob/master/backups/option1/localhost.sh|localhost.sh]]
 Use this script on the remote host that you are backing up: [[https://repo.haacksnetworking.com/oemb1905/haackingclub/blob/master/backups/option1/remote.sh|remote.sh]] Use this script on the remote host that you are backing up: [[https://repo.haacksnetworking.com/oemb1905/haackingclub/blob/master/backups/option1/remote.sh|remote.sh]]
  
computing/remote-upgrades.1580157418.txt.gz · Last modified: 2020/01/27 20:36 by oemb1905