How to deamonize rclone sync/sync-folders.sh
Currently I have implemented a script "sync/sync-folders.sh" which uses rclone configuration file at the folder to copy the cloud data into the local project folders ./data and ./models.
However, currently this process is manual, the script has to be called by the user. The ideal would be to have a deamon that keeps the folders synchronized (only copy, not delete other files) with the cloud. Normally I would do it with docker, but that might be complicated for users and a lot has to be added for something I want to hav simple.
Ideas?
Note the following probable issues:
- When downloading, a file which is currently in use might be replaced. That could generate issues. Locks?
- How to start the process, user should call a script that starts the daemon? Should be the api?