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

Recommend a consistent config location
pull/72/head
Nicco 4 years ago committed by GitHub
commit 68682777f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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:

Loading…
Cancel
Save