Jomik / screeps-server

MIT License
21 stars 11 forks source link

Recovery functionality #8

Open Jomik opened 1 year ago

Jomik commented 1 year ago

As discussed in the Screeps Discord, it is quite useful for testing/development and as a production server to have backup & restore functionality.

I would like an overview of use-cases to support, and what files specifically we need to backup/restore. We should make use of mongo and redis native recovery functionality.

For files needed, I feel like we can refer to https://github.com/screepers/screeps-launcher/blob/e62f1a4d7b6c8b01e2e8186063619be9e34bcb59/recovery/files.go#L13

Plan is to create a recovery container that has the tools required to take backups or perform restores.

Jomik commented 8 months ago

I am currently hesitant to create recovery as part of this project, as I believe it would be better implemented as part of screepsmod-mongo and/or a separate mod.