Hello, I have made an admin gui in one of my games that can manage players data, and one of the features it had was backing up old data.
This was useful for lets say: A player somehow manages to corrupt data, and the player can ask me (or admins) to back up an old save.
I made this by saving a table under a key that contained multiple data saves at once in a separate datastore.
So the table looked something like this:
{
UNIX_TIMESTAMP1 = {DataSave1};
UNIX_TIMESTAMP2 = {DataSave2};
...
}
This would also calculate how much space there is in the key. If there’s not enough space, it would create a new key.
I would then make a gui that sorts all of these by the unix timestamp and then I can just type in a date when the data was saved and I could just revert players data.
I would like your opinion if this is a good approach to backing up players data.
Thanks for reading.