Devlogs
Server Backup Improvements

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.