summaryrefslogtreecommitdiffstats
path: root/cron
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-03-06 04:32:32 +0100
committerGeorg Pfuetzenreuter2022-03-06 04:32:32 +0100
commitfcc428cdc23cf5cd1f69140008771592348fedb2 (patch)
tree19603da72fe562fb7ce251b1540d30f8a93a125e /cron
parent7e55910b27e877574e518fa1febc32405b129171 (diff)
downloadsystem-fcc428cdc23cf5cd1f69140008771592348fedb2.tar.gz
system-fcc428cdc23cf5cd1f69140008771592348fedb2.tar.bz2
system-fcc428cdc23cf5cd1f69140008771592348fedb2.zip
Updating backup scripts
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'cron')
-rw-r--r--cron/cron.d/restic_orpheus8
1 files changed, 5 insertions, 3 deletions
diff --git a/cron/cron.d/restic_orpheus b/cron/cron.d/restic_orpheus
index ca1ab51..eda54ea 100644
--- a/cron/cron.d/restic_orpheus
+++ b/cron/cron.d/restic_orpheus
@@ -1,9 +1,11 @@
-# Cronjob for Restic Backup to S3
+# Cronjob for Restic Backup to Wasabi 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
+#This will make a deduplicating (is that the right word?) backup every day at 23: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
+#This will remove everything except the last 30 days worth of snapshots every two days at 22:30
+0 4 */2 * * restic /opt/restic/cleanup.sh |& mail -s "[S3 Cleanup] - $(date)" ircsystem