From b05dc6b57ed0f0355fb9a6499d917049292df1ef Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Sun, 13 Apr 2025 09:45:54 +0200 Subject: [PATCH] fix rsnapshot cron --- docker-compose.rsnapshot.yaml | 2 ++ rsnapshot/crontabs/root | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 rsnapshot/crontabs/root diff --git a/docker-compose.rsnapshot.yaml b/docker-compose.rsnapshot.yaml index 49cfbb2..b7ad38a 100644 --- a/docker-compose.rsnapshot.yaml +++ b/docker-compose.rsnapshot.yaml @@ -3,6 +3,8 @@ services: container_name: rsnapshot image: linuxserver/rsnapshot:1.4.5 restart: unless-stopped + environment: + - TZ=Europe/Amsterdam volumes: - /opt/rsnapshot:/config - /mnt/yotta/xenon/rsnapshot:/host/scratch diff --git a/rsnapshot/crontabs/root b/rsnapshot/crontabs/root new file mode 100644 index 0000000..0bda81d --- /dev/null +++ b/rsnapshot/crontabs/root @@ -0,0 +1,10 @@ +0 3 * * * rsnapshot -c /config/os.conf daily +0 4 * * 0 rsnapshot -c /config/os.conf weekly +0 5 30 * * rsnapshot -c /config/os.conf monthly +0 3 * * * rsnapshot -c /config/docker.conf daily +0 4 * * 0 rsnapshot -c /config/docker.conf weekly +0 5 30 * * rsnapshot -c /config/docker.conf monthly +0 3 * * * rsnapshot -c /config/users.conf daily +0 4 * * 0 rsnapshot -c /config/users.conf weekly +0 5 30 * * rsnapshot -c /config/users.conf monthly +* * * * * date > /host/scratch/date