diff --git a/files/bashscripts/fileserver/akanealw/backup-scripts-to-gitrepo.sh b/files/bashscripts/fileserver/akanealw/backup-scripts-to-gitrepo.sh index 0214155..dd93fdb 100755 --- a/files/bashscripts/fileserver/akanealw/backup-scripts-to-gitrepo.sh +++ b/files/bashscripts/fileserver/akanealw/backup-scripts-to-gitrepo.sh @@ -3,42 +3,42 @@ if ping -c 1 192.168.1.41 &> /dev/null then # proxyserver - ssh plexserver crontab -l > /home/akanealw/scripts/crontab.bak + ssh plexserver crontab -l | tee /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 - ssh dockerserver crontab -l > /home/akanealw/scripts/crontab.bak + ssh dockerserver crontab -l | tee /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 - ssh plexserver crontab -l > /home/akanealw/scripts/crontab.bak + ssh plexserver crontab -l | tee /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 - ssh proxmox1 crontab -l > /home/akanealw/scripts/crontab.bak + ssh proxmox1 crontab -l | tee /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 - ssh proxmox2 crontab -l > /home/akanealw/scripts/crontab.bak + ssh proxmox2 crontab -l | tee /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/ # fileserver - crontab -l > /home/akanealw/scripts/crontab.bak + crontab -l | tee /home/akanealw/scripts/crontab.bak sudo crontab -l | sudo tee /root/scripts/crontab.bak echo "starting fileserver backup" rsync -azvP /home/akanealw/scripts/ /home/akanealw/gitrepos/fileserver/files/bashscripts/fileserver/akanealw/