autorestic/docs/markdown/migration/1.4_1.5.md
2021-11-06 22:00:44 +01:00

1.2 KiB

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.
  • Docker volumes don't get prefixed with volume: anymore, rather you have to set the type: volume in the location config.

See detailed instructions below.

Hooks

Since 1.5 multiple sources for a location are possible. For this reason, while before hooks where executed in the folder of the source, now they are executed in the directory of the config .autorestic.yaml.

You can overwrite this behavior with the new dir option in the hook section of the config.

locations:
  l1:
    # ...
    from: /foo/bar
    hooks:
      dir: /foo/bar
      before: pwd

Docker volumes

The syntax with docker volumes has changed and needs to be adjusted.

# Before
locations:
  foo:
    from: volume:my-data
# After
locations:
  foo:
    from: my-data
    type: volume

:ToCPrevNext