Add an ENV Variable option to make a backup once a player got online (skipping the 1st Backup Interval)
- Dominant language
- Shell
- Stars
- 538
- Forks
- 69
- Avg merge
- 3h 28m
- Merged PRs (30d)
- 2
Description
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!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the script's player interval check and backup interval handling, then locate where environment-variable options are defined and consumed. The option should trigger a backup when players come online after the server has been idle, without removing the normal backup interval; verify the timing against the two sequences in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100