Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FurkanVG opened this issue Sep 30, 2024 · 0 comments

Comments

@FurkanVG
Copy link

FurkanVG commented Sep 30, 2024

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 FurkanVG changed the title Add an ENV Variable option to make a backup once Add an ENV Variable option to make a backup once player got online Sep 30, 2024
@FurkanVG FurkanVG changed the title Add an ENV Variable option to make a backup once player got online Add an ENV Variable option to make a backup once a player got online (skipping the 1st Backup Interval) Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant