mandarons / icloud-drive-docker

Dockerized iCloud Client - make a local copy of your iCloud documents and photos, and keep it automatically up-to-date.
BSD 3-Clause "New" or "Revised" License
962 stars 46 forks source link

[FEATURE] Schedule sync #233

Open Verkhovskyi opened 1 week ago

Verkhovskyi commented 1 week ago

As the one who sleeps in the same room where the server lives, I think it would be nice to be able to set a schedule of synchronization :)

For example, I'd like to allow sync and downloads only on weekdays 8:00 am to 5:00 pm

mandarons commented 1 week ago

This can be achieved through something like cron. If you set sync_interval to -1, it will sync once and exit (more info: #35). You can set cron schedule to run the docker container with sync_interval set to -1 in config.yaml.

Verkhovskyi commented 1 week ago

35 is about manual one-time usage, which is nice to have as an option, but very different from subject