From 9484299cd903c24c13114187fa184748ef11c3a8 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sun, 28 Jun 2020 22:33:15 +0200 Subject: [PATCH] cron working now --- docs/md/location/cron.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/md/location/cron.md b/docs/md/location/cron.md index a0ba39f..0e04412 100644 --- a/docs/md/location/cron.md +++ b/docs/md/location/cron.md @@ -31,7 +31,11 @@ crontab -e Then paste this at the bottom of the file and save it. Note that in this specific example the `.autorestic.yml` is located in `/srv/`. You need to modify that part of course to fit your config file. ```bash -0 * * * * /usr/local/bin/autorestic -c /srv/.autorestic.yml +# This is required, as it otherwise cannot find restic as a command. +PATH="/usr/local/bin:/usr/bin:/bin" + +# Example running every monday at 4 in the morning +0 4 * * 1 autorestic -c /srv/.autorestic.yml cron ``` Now you can add as many `cron` attributes as you wish ⏱