mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 07:50:45 -05:00
Here's a jumping off point for the profile backup feature. Included some basic configuration options. Currently backup runs on server start-up (before the profiles are loaded into memory) and on a configurable interval. I think it still needs work. - [x] The folder name dates should be used to detect which old backups should be removed - [x] Not sure about the interval implementation... - [x] Could make the clean method thinner - [x] Remove VFS; I don't believe it's needed for copy operations - [x] Save a list of active mods used by the backed up profiles --------- Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com> Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
10 lines
178 B
JSON
10 lines
178 B
JSON
{
|
|
"enabled": true,
|
|
"maxBackups": 15,
|
|
"directory": "./user/profiles/backups",
|
|
"backupInterval": {
|
|
"enabled": false,
|
|
"intervalMinutes": 120
|
|
}
|
|
}
|