mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-22 16:26:25 +00:00
Nicco
434862ed4e
* fix for #178 * restore options * error codes * update docs * forget docs * add option to auto forget * add copy option * update go version to enable generics * copy docs * changelog & version bump
32 lines
708 B
Markdown
32 lines
708 B
Markdown
# Copy
|
|
|
|
Instead of specifying multiple `to` backends for a given `location` you can also use the `copy` option. Instead of recalculating the backup multiple times, you can copy the freshly copied snapshot from one backend to the other, avoiding recomputation.
|
|
|
|
###### Example
|
|
|
|
```yaml | .autorestic.yml
|
|
locations:
|
|
my-location:
|
|
from: /data
|
|
to:
|
|
- a #Fast
|
|
- b #Fast
|
|
- c #Slow
|
|
```
|
|
|
|
Becomes
|
|
|
|
```yaml | .autorestic.yml
|
|
locations:
|
|
my-location:
|
|
from: /data
|
|
to:
|
|
- a
|
|
- b
|
|
copy:
|
|
a:
|
|
- c
|
|
```
|
|
|
|
Instead of backing up to each backend separately, you can choose that the snapshot created to `a` will be copied over to `c`, avoiding heavy computation on `c`.
|