Markus Michalski FAQ

restic-backup-suite: Scheduling

Scheduling restic-backup-suite: the cron job in /etc/cron.d, changing or removing it, the cron log file and what is not provided (systemd timers, lock against parallel runs).

Deutsche Version

Back to overview


Scheduling

Installing the cron job

sudo ./install.sh --cron

The installer writes /etc/cron.d/restic-backup with this content:

# restic-backup-suite — daily backup at 03:00
# To disable: rm /etc/cron.d/restic-backup
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 3 * * * root /usr/local/bin/restic-backup >> /var/log/restic/cron.log 2>&1

The backup then runs daily at 03:00 as root. Output goes to /var/log/restic/cron.log.

Changing the time or turning it off

Edit the time directly in /etc/cron.d/restic-backup. Running install.sh --cron again overwrites the file with 03:00. To turn it off, delete the file: sudo rm /etc/cron.d/restic-backup.

What is not included