add config version to ensure compatibility

This commit is contained in:
2021-11-06 22:00:44 +01:00
parent c250391f67
commit 113a97c283
3 changed files with 42 additions and 5 deletions

View File

@@ -1,5 +1,13 @@
# Migration from `1.4` to `1.5`
## Config files
- The config file now required to have a version number. This has to be added with `version: 2` at the root.
- Hooks now optionally support `dir: /some/dir` in the [options object](https://pkg.go.dev/github.com/cupcakearmy/autorestic/internal#Hooks).
- Docker volumes don't get prefixed with `volume:` anymore, rather you have to set the `type: volume` in the [location config](https://pkg.go.dev/github.com/cupcakearmy/autorestic/internal#Hooks).
See detailed instructions below.
## Hooks
Since `1.5` multiple sources for a location are possible.