docker-mc-backup icon indicating copy to clipboard operation
docker-mc-backup copied to clipboard

Add an ENV Variable option to make a backup once a player got online (skipping the 1st Backup Interval)

Open FurkanVG opened this issue 1 year ago • 0 comments

Hi,

as mentioned on Discord, it would be cool to have the option to create a backup once a players gets online after the Player Interval Check.

Currently, the script would start the timer of the default backup interval (which could be 2h). In that case, the script would run a backup only after 2h a player got on.

Example how it is now:

  1. 00:01 - Server boots up
  2. 00:02 - Startup Backup enabled, 1st Backup
  3. 01:02 - 1h hit (if Backup Interval is 1h as example), 2nd Backup
  4. 01:45 - Players go offline, nobody online anymore
  5. 02:02 - 1h hit, Backup happens AND Then player check is 0
  6. 03:25 - Player got online, waiting 1h for next Backup
  7. 04:25 - 3rd Backup

With the option to do a backup right after a player got online, it would look like this:

  1. 00:01 - Server boots up
  2. 00:02 - Startup Backup enabled, 1st Backup
  3. 01:02 - 1h hit (if Backup Interval is 1h as example), 2nd Backup
  4. 01:45 - Players go offline, nobody online anymore
  5. 02:02 - 1h hit, Backup happens AND Then player check is 0
  6. 03:25 - Player got online, starting 3rd Backup
  7. 04:25 - 4th Backup

Thanks!

FurkanVG avatar Sep 30 '24 13:09 FurkanVG