updated script
This commit is contained in:
@@ -3,36 +3,36 @@
|
||||
if ping -c 1 192.168.1.41 &> /dev/null
|
||||
then
|
||||
# proxyserver
|
||||
crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
ssh plexserver crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
ssh plexserver sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
echo "starting proxyserver backup"
|
||||
ssh proxyserver rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxyserver/akanealw/
|
||||
ssh proxyserver sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxyserver/root/
|
||||
|
||||
# dockerserver
|
||||
crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
ssh dockerserver crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
ssh dockerserver sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
echo "starting dockerserver backup"
|
||||
ssh dockerserver rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/dockerserver/akanealw/
|
||||
ssh dockerserver sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/dockerserver/root/
|
||||
|
||||
# plexserver
|
||||
crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
ssh plexserver crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
ssh plexserver sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
echo "starting plexserver backup"
|
||||
ssh plexserver rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/plexserver/akanealw/
|
||||
ssh plexserver sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/plexserver/root/
|
||||
|
||||
# proxmox1
|
||||
crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
ssh proxmox1 crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
ssh proxmox1 sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
echo "starting proxmox1 backup"
|
||||
ssh proxmox1 rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox1/akanealw/
|
||||
ssh proxmox1 sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox1/root/
|
||||
|
||||
# proxmox2
|
||||
crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
ssh proxmox2 crontab -l > /home/akanealw/scripts/crontab.bak
|
||||
ssh proxmox2 sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
echo "starting proxmox2 backup"
|
||||
ssh proxmox2 rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox2/akanealw/
|
||||
ssh proxmox2 sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox2/root/
|
||||
|
||||
Reference in New Issue
Block a user