itzg / docker-mc-backup

Provides a side-car container to backup itzg/minecraft-server world data
https://hub.docker.com/r/itzg/mc-backup
MIT License
316 stars 52 forks source link

Add chron time schedule for backups #156

Open hamcoremusic opened 10 months ago

hamcoremusic commented 10 months ago

I would love to be able to actually schedule a time rather than just an interval between backups. Is this currently possible?

itzg commented 10 months ago

I would recommend setting up a normal cron job and have it use the backup now option described here:

https://github.com/itzg/docker-mc-backup#on-demand-backups

hamcoremusic commented 10 months ago

I would recommend setting up a normal cron job and have it use the backup now option described here:

https://github.com/itzg/docker-mc-backup#on-demand-backups

Okay I see! Disabling the built in timer should just be setting it to -1 correct?

itzg commented 10 months ago

The "now" argument will instruct it to run one time only, so effectively disabling the timer.