Recommend a consistent config location

This commit is contained in:
David Boles 2021-04-26 16:22:32 -07:00
parent bbc32568ad
commit b6c7922df5
2 changed files with 3 additions and 3 deletions

View File

@ -30,14 +30,14 @@ First, open your crontab in edit mode
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.
Then paste this at the bottom of the file and save it. Note that in this specific example the config file is located at one of the default locations (e.g. `~/.autorestic.yml`). If your config is somewhere else you'll need to specify it using the `-c` option.
```bash
# This is required, as it otherwise cannot find restic as a command.
PATH="/usr/local/bin:/usr/bin:/bin"
# Example running every 5 minutes
*/5 * * * * autorestic -c /srv/.autorestic.yml --ci cron
*/5 * * * * autorestic --ci cron
```
> The `--ci` option is not required, but recommended

View File

@ -9,7 +9,7 @@ curl -s https://raw.githubusercontent.com/CupCakeArmy/autorestic/master/install.
## Write a simple config file
```bash
vim .autorestic.yml
vim ~/.autorestic.yml
```
For a quick overview: