Initial Cron Run

Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
Georg Pfuetzenreuter 2021-07-21 13:33:34 +02:00
parent 475dd43e32
commit 2678e73ff1
6 changed files with 41 additions and 0 deletions

4
cron/cron.d/certbot Normal file
View File

@ -0,0 +1,4 @@
SHELL=/bin/sh
MAILTO=system@lysergic.dev
0 0,12 * * * certbot sleep 1960 && /opt/certbot/certbot-venv/bin/certbot renew -q

3
cron/cron.d/mirror Normal file
View File

@ -0,0 +1,3 @@
SHELL=/bin/sh
0 2 * * * mirror /mnt/gluster01/mirror/meta/slackware.sh

View File

@ -0,0 +1,9 @@
# Cronjob for Restic Backup to S3
# Created and last modified: 20/07/2021
# georg@lysergic.dev
MAILTO=system
SHELL=/bin/sh
#This will make a deduplicating backup every day at 22:00 and send an email to system@lysergic.dev as well as #universe
0 22 * * * restic /opt/restic/run.sh |& mail -s "S3 Backup - $(hostname -f) - $(date)" ircsystem

10
cron/cron.d/restic_selene Normal file
View File

@ -0,0 +1,10 @@
# Cronjob for Restic Backup to S3
# Created and last modified: 20/07/2021
# georg@lysergic.dev
MAILTO=system
SHELL=/bin/sh
#This will make a deduplicating backup every day at 21:00 and send an email to system@lysergic.dev as well as #universe
0 21 * * * restic /opt/restic/run.sh |& mail -s "S3 Backup - $(hostname -f) - $(date)" ircsystem

9
cron/cron.d/restic_theia Normal file
View File

@ -0,0 +1,9 @@
# Cronjob for Restic Backup to S3
# Created and last modified: 20/07/2021
# georg@lysergic.dev
MAILTO=system
SHELL=/bin/sh
#This will make a deduplicating backup every day at 23:00 and send an email to system@lysergic.dev as well as #universe
0 23 * * * restic /opt/restic/run.sh |& mail -s "S3 Backup - $(hostname -f) - $(date)" ircsystem

View File

@ -0,0 +1,6 @@
#!/bin/sh
BEFORE=$(du -h /opt/beauties/data/storage)
echo "#universe +++ $BEFORE - Starting cleanup ..." | nc -N 127.0.0.2 2424
find /opt/beauties/data/storage/* -mtime +60 -exec rm {} \; | nc -N 127.0.0.2 2424
AFTER=$(du -h /opt/beauties/data/storage)
echo "#universe +++ $AFTER - Cleanup complete." | nc -N 127.0.0.2 2424