Merge pull request #59 from david-boles/consistent-config-location

Recommend a consistent config location
This commit is contained in:
Nicco 2021-04-27 08:26:22 +02:00 committed by GitHub
commit 68682777f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -30,14 +30,14 @@ First, open your crontab in edit mode
crontab -e 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 ```bash
# This is required, as it otherwise cannot find restic as a command. # This is required, as it otherwise cannot find restic as a command.
PATH="/usr/local/bin:/usr/bin:/bin" PATH="/usr/local/bin:/usr/bin:/bin"
# Example running every 5 minutes # 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 > 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 ## Write a simple config file
```bash ```bash
vim .autorestic.yml vim ~/.autorestic.yml
``` ```
For a quick overview: For a quick overview: