Skip to content

Comment on How to Automatically Backup a Linux VPS to a Separate Cloud Storage Serviceparent

Comments

How are you orchestrating them?

With kubernetes (and no more specifics than you've mentioned) you should use a Job.

With docker-compose I think I'd be tempted to have a different service that isn't long-running, and a cron job on the host that runs it.

With swarm, unless it supports something like k8s Jobs, (I don't know if it does or not, only used it once briefly and in anger) I'd probably have a 'cronjob' service which was responsible for launching the short-lived services per compose suggestion above.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.