From 818ab9b507bfa7e768deeb8f85f847371d1e7baa Mon Sep 17 00:00:00 2001 From: jetchirag Date: Fri, 7 Jul 2023 10:08:49 +0530 Subject: [PATCH] Crontab.txt related edits --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d19634..586b1b9 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,7 @@ docker exec borgmatic \ bash -c "cd && generate-borgmatic-config -d /etc/borgmatic.d/config.yaml" ``` crontab.txt example: In this file set the time you wish for your backups to take place default is 1am every day. In here you can add any other tasks you want ran -``` -0 1 * * * PATH=$PATH:/usr/bin /usr/bin/borgmatic --stats -v 0 2>&1 -``` + ## Environment ## @@ -82,6 +80,11 @@ You can set the following environment variables: | `BACKUP_CRON` | Cron schedule to run borgmatic. Default:`0 1 * * *` | | `RUN_ON_STARTUP` | Run borgmatic on startup. e.g.: `RUN_ON_STARTUP=true` | +You can also provide your own crontab file. If `data/borgmatic.d/crontab.txt` exists, `BACKUP_CRON` will be ignored in preference to it. In here you can add any other tasks you want ran +``` +0 1 * * * PATH=$PATH:/usr/bin /usr/bin/borgmatic --stats -v 0 2>&1 +``` + Beside that, you can also pass any environment variable that is supported by borgmatic. See documentation for [Borgmatic](https://torsion.org/borgmatic/) and [Borg](https://borgbackup.readthedocs.io/) and for a list of supported variables. ## Other usage methods