Add a possibility to run system commands as a periodic task #15493
Replies: 2 comments 6 replies
-
|
I think this is out of scope for Weblate. Still, you can achieve periodic task execution using a few lines of Python code, but I've just realized that this part of the Docker container is not documented at all. #15494 adds the missing documentation. |
Beta Was this translation helpful? Give feedback.
-
|
I followed your example and put a python file unter First of all, I had to create the directory And my guess is also, that for this reason it gets not picked up. Did I miss something here? Hint: My colleague Markus Schmitt tried to get a support contract with Weblate but it is still not active because we need a CV from your employee. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem description
Currently there is no way to define a task that runs a system command as a periodic task.
Use cases
Many administrative tasks on a Linux based system is by running system processes or scripts via bash, that automate these tasks.
In my case I would like to add a script that takes the Borg backup directory, archives it into a tar file and ships the tar file to an S3 storage.
Currently the Borg backup directory is a mapped kubernetes volume, that can be lost at any time. In our infrastructure there is, besides databases and an on premise S3, no other persistent storage, that can be used as a secure backup location.
Using an external storage location is for security reasons not allowed. So that leaves me with S3.
It such a generic system task would be available it would be easy to map the script into the Weblate container (pod) and define a periodic task in Weblate.
Solution brainstorm
Suggested solution
Add a task to Weblate that takes a command and its arguments and spawns a process running that command line.
Describe alternatives you have considered
Alternatives
This could be done by defining a volume holding the crontab and map it to the system for execution.
Screenshots
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions