2023-10-18 01:31:05 +02:00
|
|
|
# /etc/cron.d/restic.crontab
|
|
|
|
|
|
|
|
# every 4 hours create a backup
|
2023-10-18 20:58:24 +02:00
|
|
|
0 */4 * * * root /opt/scripts/restic/backup.sh
|
2023-10-18 01:31:05 +02:00
|
|
|
|
|
|
|
# every day at 2 in the morning, forget old backups
|
2023-10-18 20:58:24 +02:00
|
|
|
0 2 * * * root /opt/scripts/restic/forget.sh
|
2023-10-18 01:31:05 +02:00
|
|
|
|
|
|
|
# every 1st of the month at 2 in the morning, prune
|
2023-10-18 20:58:24 +02:00
|
|
|
50 2 1 * * root /opt/scripts/restic/prune.sh
|