Server Backup Improvements
DT: Basketball » Devlog
It’s about time to quicken the backup process as user data increases in size. From averaging 20 players, the game is now up to 100+ daily!
Here are the history of how I backup server data:
Copy paste
- Back when data is small, it was easy to load everything up, just select all, and press ctrl-C, then ctrl-V into a notepad file. No coding was needed at all.
Load in chunks then copy paste
- As new users come in and play, data size increased. Loading of data at once now causes the server to hang and crash so I can no longer just copy paste. The issue is the size is way too big to read so I had to split it into chunks.
- For example, if the array width is at 1k then I split that into 4 chunks and just read and copy paste 250 at a time.
Using NWJs object write function
- I just enter a command and it writes the data to a text file. Same as before, the writing is by batch to prevent server crashes. This is much quicker w/ fewer actions.
All of these method is done manually and I chose that to be. Automatic backup will surely be in the future but since the server is new (2 month-ish) I want to supervise every backup process.
DT: Basketball
Status | In development |
Author | JayteeGameDev |
Genre | Simulation, Sports, Strategy |
Tags | Basketball, basketball-manager, Indie, Mouse only, Point & Click |
More posts
- Trading is Open (again)10 days ago
- Batch Saving58 days ago
- Spring cleaning in January82 days ago
- Post-Merger: Success & What's next?86 days ago
- Merger Day! 🎊 🎉 🥳87 days ago
- Pre-merger day thoughts (1)88 days ago
- Merger Day 2025!93 days ago
Leave a comment
Log in with itch.io to leave a comment.