re init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
USER=knast
|
||||
PATH=shares
|
||||
TV_DIR=tv
|
||||
CLASSICS_DIR=classics
|
||||
FILM_DIR=film
|
||||
|
||||
/usr/bin/chmod -v 0644 -R /home/$USER/$PATH/disk1/$TV_DIR/* > /home/$USER/logs/tv_chmod.log
|
||||
echo "CRON CHMOD TV RAN AT: " `/usr/bin/date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/tv_chmod.log
|
||||
|
||||
/usr/bin/chmod -v 0644 -R /home/$USER/$PATH/disk1/$film/* > /home/$USER/logs/film_chmod.log
|
||||
echo "CRON CHMOD FILM RAN AT: " `/usr/bin/date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/film_chmod.log
|
||||
|
||||
/usr/bin/chmod -v 0644 -R /home/$USER/$PATH/disk1/$CLASSICS_DIR/* > /home/$USER/logs/classic_chmod.log
|
||||
echo "CRON CHMOD CLASSIC RAN AT: " `/usr/bin/date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/classic_chmod.log
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# 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 * * * /usr/bin/certbot renew --quiet & echo "LETSENCRYPT RENEWAL CRON RAN: " `date '+%Y-%m-%d %H:%M:%S'` > /v$
|
||||
|
||||
0 0 * * 0 /bin/journalctl --vacuum-time=5d
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
# 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
|
||||
*/2 * * * * /usr/bin/flock -n /tmp/fcj.lockfile /home/null/scripts/sync_tv.sh
|
||||
*/2 * * * * /usr/bin/flock -n /tmp/fcj.lockfile /home/null/scripts/sync_flims.sh
|
||||
0 0 * * * /home/null/scripts/prune_node_modules.sh
|
||||
|
||||
|
||||
#!/bin/bash
|
||||
echo "STARTING MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/film_cron.log
|
||||
/usr/bin/flock -w 0 /tmp/rsync-cron-script-movies.lock rsync -ravz --stats --progress --exclude='/home/null/shares/disk2/media/movies/_movies' -e "ssh -i /home/null/.ssh/id_rsa_sync " 'invalid@unity.whatbox.ca:/home/invalid/files/_movies' '/home/null/shares/disk2/media/movies/_movies' >> /home/null/logs/film_cron.log
|
||||
echo "CRON MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/film_cron.log
|
||||
|
||||
|
||||
#SYNC TV FROM UNITY TO DISK 2
|
||||
* * * * * /bin/sh /home/null/scrpts/tv_sync.sh
|
||||
|
||||
#!/bin/bash
|
||||
echo "STARTING MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/tv_cron.log
|
||||
/usr/bin/flock -w 0 /tmp/rsync-cron-script-tv.lock rsync -ravz --stats --progress --exclude='/home/null/shares/disk2/media/tv' -e "ssh -i /home/null/.ssh/id_rsa_sync " 'invalid@unity.whatbox.ca:/home/invalid/files/_tv' '/home/null/shares/disk2/media/tv' >> /home/null/logs/tv_cron.log
|
||||
echo "CRON MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/tv_cron.log
|
||||
@@ -0,0 +1,114 @@
|
||||
# /etc/ddclient.conf
|
||||
|
||||
#protocol=dyndns2
|
||||
|
||||
#server=knast.cc
|
||||
#login=kattemonster
|
||||
#password='686559cf45c34d82820f0851a2cb6f0d'
|
||||
#knast.cc
|
||||
|
||||
|
||||
#use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
#protocol=namecheap
|
||||
#server=dynamicdns.park-your-domain.com
|
||||
#login=knast.cc
|
||||
#password=686559cf45c34d82820f0851a2cb6f0d
|
||||
#www
|
||||
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
gitlab
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
nextcloud
|
||||
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
plex
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
znc
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
read
|
||||
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
stats
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
kuma
|
||||
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
files
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
logs
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
registry
|
||||
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=udohaiku.com
|
||||
password=e347224ae801444dae7e48b4f4e40556
|
||||
@
|
||||
|
||||
use=web, web=dynamicdns.park-your-domain.com/getip
|
||||
protocol=namecheap
|
||||
server=dynamicdns.park-your-domain.com
|
||||
login=knast.cc
|
||||
password=686559cf45c34d82820f0851a2cb6f0d
|
||||
pseudo
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/bin/rsync -ravz --stats --progress --exclude=$1 -e "ssh -i /home/null/.ssh/id_rsa_sync " invalid@unity.whatbox.ca:/home/invalid/files/$2/ $1
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NOTE: NO LONGER USED
|
||||
|
||||
# i placed these commands in /etc/rc.local instead
|
||||
# sudo nano /etc/rc.local
|
||||
# add #!/bin/sh -e at the top and it works as an on boot @reboot kinda thingy
|
||||
|
||||
mount -U 226f1314-44ab-4cb4-aa1e-882fcdc32b7d shares/disk1
|
||||
mount -U aca84138-bcec-4fb0-b8ff-d62d69b1106e shares/disk2
|
||||
mount -U 26df43c7-cb67-452b-98bd-ae24a40e8f57 shares/disk3
|
||||
mount -U 09e28e23-3ad9-4407-8c94-b028a89e3d84 shares/disk4
|
||||
mount -U 508d38d1-3772-454e-ab5e-b3b6bbb00674 shares/disk5
|
||||
|
||||
#mount /dev/sda1 ~/shares/disk1
|
||||
#mount /dev/sdb1 ~/shares/disk3
|
||||
#mount /dev/sdf1 ~/shares/disk4
|
||||
#mount /dev/sde ~/shares/disk5
|
||||
#mount /dev/sdd ~/shares/disk6
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/bin/find /home/null/shares -name "node_modules" -type d -prune -exec rm -rf '{}' +
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
echo "STARTING KIDS MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/bornefilm_cron.log
|
||||
/usr/bin/rsync -ravz --stats --progress --exclude=/home/null/shares/disk3/bornefilm -e "ssh -i /home/null/.ssh/id_rsa_sync " invalid@unity.whatbox.ca:/home/invalid/files/_bornefilm/ /home/null/shares/disk3/bornefilm >> /home/null/logs/flims_cron.log
|
||||
echo "CRON KIDS MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/flims_cron.log
|
||||
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
log_file=classics_cron.log
|
||||
|
||||
echo "STARTING CLASSIC MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` > /home/$USER/logs/$log_file ;
|
||||
/usr/bin/rsync -avz --no-perms --no-owner --no-group --stats --progress --exclude=/home/$USER/shares/disk1/classics -e "ssh -i /home/$USER/.ssh/id_rsa_what " invalid@unity.whatbox.ca:/home/invalid/files/_classics/ /home/$USER/shares/disk1/classics >> /home/$USER/logs/$log_file
|
||||
echo "CRON CLASSIC MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/$log_file
|
||||
/usr/bin/chmod 777 -R /home/$USER/shares/disk1/classics > /home/$USER/logs/chmod_classics.log
|
||||
echo "CRON CHMOD CLASSIC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/chmod_classics.log
|
||||
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
log_file=flims_cron.log
|
||||
|
||||
echo "STARTING MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` > /home/$USER/logs/$log_file ;
|
||||
/usr/bin/rsync -avz --no-perms --no-owner --no-group --stats --progress --exclude=/home/$USER/shares/disk1/film -e "ssh -i /home/$USER/.ssh/id_rsa_what " invalid@mir.whatbox.ca:/home/invalid/files/_movies/ /home/$USER/shares/disk1/film >> /home/$USER/logs/$log_file
|
||||
echo "CRON MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/$log_file
|
||||
/usr/bin/chmod 777 -R /home/$USER/shares/disk1/film > /home/$USER/logs/chmod_film.log
|
||||
echo "CRON CHMOD FILM RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/chmod_film.log
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
log_file=tv_cron.log
|
||||
|
||||
echo "STARTING TV FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` > /home/$USER/logs/$log_file ;
|
||||
/usr/bin/rsync -avz --no-perms --no-owner --no-group --stats --progress --exclude=/home/$USER/shares/disk1/tv -e "ssh -i /home/$USER/.ssh/id_rsa_what " invalid@mir.whatbox.ca:/home/invalid/files/_tv/ /home/$USER/shares/disk1/tv >> /home/$USER/logs/$log_file
|
||||
echo "CRON TV FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/$log_file
|
||||
/usr/bin/chmod 777 -R /home/$USER/shares/disk1/tv > /home/$USER/logs/chmod_tv.log
|
||||
echo "CRON CHMOD TV RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/chmod_tv.log
|
||||
@@ -0,0 +1,9 @@
|
||||
sda1 931.5GB UUID="226f1314-44ab-4cb4-aa1e-882fcdc32b7d"
|
||||
|
||||
sdb1 465.8GB UUID="aca84138-bcec-4fb0-b8ff-d62d69b1106e"
|
||||
|
||||
sdd 1.8T UUID="26df43c7-cb67-452b-98bd-ae24a40e8f57"
|
||||
|
||||
sde 1.4T UUID="09e28e23-3ad9-4407-8c94-b028a89e3d84"
|
||||
|
||||
sdf1 1.8T UUID="508d38d1-3772-454e-ab5e-b3b6bbb00674"
|
||||
Reference in New Issue
Block a user