updated scripts
This commit is contained in:
24
files/bashscripts/dockerserver/akanealw/crontab.bak
Normal file
24
files/bashscripts/dockerserver/akanealw/crontab.bak
Normal file
@@ -0,0 +1,24 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
0 12 * * * /home/akanealw/scripts/restart-gluetun-and-services.sh >> /home/akanealw/restart-gluetun-and-services.log
|
||||
23
files/bashscripts/dockerserver/root/crontab.bak
Normal file
23
files/bashscripts/dockerserver/root/crontab.bak
Normal file
@@ -0,0 +1,23 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
@@ -5,36 +5,42 @@ if ping -c 1 192.168.1.41 &> /dev/null
|
||||
# proxyserver
|
||||
ssh plexserver "crontab -l | tee /home/akanealw/scripts/crontab.bak \
|
||||
&& sudo crontab -l | sudo tee /root/scripts/crontab.bak \
|
||||
&& rm /home/akanealw/scripts/debian-essentials.sh \
|
||||
&& rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxyserver/akanealw/ \
|
||||
&& sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxyserver/root/"
|
||||
|
||||
# dockerserver
|
||||
ssh dockerserver "crontab -l | tee /home/akanealw/scripts/crontab.bak \
|
||||
&& sudo crontab -l | sudo tee /root/scripts/crontab.bak \
|
||||
&& rm /home/akanealw/scripts/debian-essentials.sh \
|
||||
&& rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/dockerserver/akanealw/ \
|
||||
&& sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/dockerserver/root/"
|
||||
|
||||
# plexserver
|
||||
ssh plexserver "crontab -l | tee /home/akanealw/scripts/crontab.bak \
|
||||
&& sudo crontab -l | sudo tee /root/scripts/crontab.bak \
|
||||
&& rm /home/akanealw/scripts/debian-essentials.sh \
|
||||
&& rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/plexserver/akanealw/ \
|
||||
&& sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/plexserver/root/"
|
||||
|
||||
# proxmox1
|
||||
ssh proxmox1 "crontab -l | tee /home/akanealw/scripts/crontab.bak \
|
||||
&& sudo crontab -l | sudo tee /root/scripts/crontab.bak \
|
||||
&& rm /home/akanealw/scripts/debian-essentials.sh \
|
||||
&& rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox1/akanealw/ \
|
||||
&& sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox1/root/"
|
||||
|
||||
# proxmox2
|
||||
ssh proxmox2 "crontab -l | tee /home/akanealw/scripts/crontab.bak \
|
||||
&& sudo crontab -l | sudo tee /root/scripts/crontab.bak \
|
||||
&& rm /home/akanealw/scripts/debian-essentials.sh \
|
||||
&& rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox2/akanealw/ \
|
||||
&& sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxmox2/root/"
|
||||
|
||||
# fileserver
|
||||
crontab -l | tee /home/akanealw/scripts/crontab.bak
|
||||
sudo crontab -l | sudo tee /root/scripts/crontab.bak
|
||||
rm /home/akanealw/scripts/debian-essentials.sh
|
||||
rsync -azvP /home/akanealw/scripts/ /home/akanealw/gitrepos/fileserver/files/bashscripts/fileserver/akanealw/
|
||||
sudo rsync -azvP /root/scripts/ /home/akanealw/gitrepos/fileserver/files/bashscripts/fileserver/root/
|
||||
|
||||
|
||||
6
files/bashscripts/fileserver/akanealw/plexserver.sh
Executable file
6
files/bashscripts/fileserver/akanealw/plexserver.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
ssh plexserver "crontab -l | tee /home/akanealw/scripts/crontab.bak \
|
||||
&& sudo crontab -l | sudo tee /root/scripts/crontab.bak \
|
||||
&& rsync -azvP /home/akanealw/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxyserver/akanealw/ \
|
||||
&& sudo rsync -azvP /root/scripts/ akanealw@fileserver:/home/akanealw/gitrepos/fileserver/files/bashscripts/proxyserver/root/"
|
||||
0
files/bashscripts/plexserver/akanealw/crontab.bak
Normal file
0
files/bashscripts/plexserver/akanealw/crontab.bak
Normal file
24
files/bashscripts/plexserver/root/crontab.bak
Normal file
24
files/bashscripts/plexserver/root/crontab.bak
Normal file
@@ -0,0 +1,24 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
0 15 * * * /root/scripts/clean-plex-photo-cache.sh
|
||||
0
files/bashscripts/proxmox1/akanealw/crontab.bak
Normal file
0
files/bashscripts/proxmox1/akanealw/crontab.bak
Normal file
25
files/bashscripts/proxmox1/root/crontab.bak
Normal file
25
files/bashscripts/proxmox1/root/crontab.bak
Normal file
@@ -0,0 +1,25 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
@reboot /root/scripts/ping-before-starting-cts-vms.sh
|
||||
30 12 * * * /root/scripts/rsync-import-debian-ubuntu-cloud-images.sh
|
||||
24
files/bashscripts/proxmox2/akanealw/crontab.bak
Normal file
24
files/bashscripts/proxmox2/akanealw/crontab.bak
Normal file
@@ -0,0 +1,24 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
0 11 * * * /home/akanealw/scripts/restart-gluetun-and-services.sh
|
||||
26
files/bashscripts/proxmox2/root/crontab.bak
Normal file
26
files/bashscripts/proxmox2/root/crontab.bak
Normal file
@@ -0,0 +1,26 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
@reboot /root/scripts/ping-before-starting-cts-vms.sh
|
||||
0 12 * * * /root/scripts/download-import-debian-ubuntu-cloud-images.sh
|
||||
30 9 * * * /root/scripts/wake-proxmox1.sh
|
||||
Reference in New Issue
Block a user