Hi!
I’m running a small private MC server that is accessed once in a while and have backups scheduled daily. This, however, creates multiple identical backups if the server isn’t used for a long time.
I am therefore looking for a way to create a backup if there were actually changes to the world data. There are some triggers and ‘if condition is met’ option in the scheduler, but I can’t get my head around it.
- The MC server is configured to enter the sleep mode on inactivity.
- We need to prevent multiple daily backups (maximum one backup per day - i.e. if the server is woken multiple times per day)
Here’s what I currently come up with:
Trigger: The last player leaves the server If {@State} Contains SLEEP Take a backup
So this should take a backup only if the server goes to sleep after a user leaves (prevents false-positive triggers if the server is woken up and no user joins), but it is missing a time condition — not checking for the last backup time to prevent multiple daily backups.
Is there any solution that I’m missing?