I do not understand the relation between system cron, the cron prop in config file, and autorestic cron command. My conclusions on this (might be falsy)
#424
Replies: 2 comments
-
|
I would love to know an answer to these exact same questions. |
Beta Was this translation helpful? Give feedback.
-
|
I tried to explain it here #425 (comment) I'll try to explain it here as well and I'll go into some more details.
You don't. Technically speaking there's two ways to handling periodical backups.
You need to pick one of those options. So what's the point of When using So when you run There are some benefits to this but you could achieve the same thing using the system cron in most cases:
With this context, I should be able to answer your questions and address your conclusions:
You don't. Either manage everything yourself using the system cron or run
Why does the documentation not explain these things? That's because Why does should it be run by the system cron? That's only needed if you want to use the
I just read the code around the cron, locations and global options and I don't think that this is possible. Now onto your conclusions:
I don't think that this is true. The cron, location or config loading code doesn't do anything special to access the global config in the context of a cron execution.
I'm not 100% sure I understand what you mean by this but I can tell you the following:
Following the previous point, I don't think so. There are no generated cron jobs.
This is not the case. When you use The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs page do not mention the relations of these at all.
The questions are:
Why do I need to define
cronprop in.autorestic.yamlif I have already setup a cronjob like:autorestic backup -c ~/.autorestic.yaml -av --cifor every hour0 * * * * *in the system?Why do I need to run
autorestic croncommand if I have the same job already setup from above?The cron command docs page does not explain what the
autorestic croncommand do. It is mentioned that it should be run by systemcron. Why?Can the
cronprop in.autorestic.yamlconfig file be defined in theglobalsection? There is no schema for the config...Despite the absenced info, I have made some conclusions:
cronprop inglobalsection of.autorestic.yamlconfig file;autorestic cronwill generate and register cronjobs in the system for each backend;keepstrategy defined in config file.Am I right?
Beta Was this translation helpful? Give feedback.
All reactions