Open N-Schaef opened 2 years ago
That is not an option rn
What you could do rn is use the extra
field and yaml
anchors to achieve a similar behavior.
https://autorestic.vercel.app/config#aliases
version: 2
extras:
data: &foo
from: /mnt/data
# ...
locations:
data-local:
<<: *foo
to: local
cron: '0 0 0 0 0'
data-remote:
<<: *remote
to: local
cron: '0 0 0 1 0'
@cupcakearmy
Thanks for the hint, I tried to solve the same problem. Still I'm a bit confused:
Do I understand correctly there has to be another YAML anchor named remote
?
Otherwise your snippet wouldn't work, right?
Also I don't understand to
has the same value for both locations - shouldn't it be local
and remote
or am I missing something here?
I could not find anything in the docs. Is it currently possible to have different crons per backend location?
For example:
And perform the local backup daily and the remote backup weekly?
I know I could use two locations for that, but this seems more like a workaround