clvrk/vellum

Backups enabled but no backup showing in path...

StrikerMan780 opened this issue · 2 comments

Here's my config:

{
  "BdsBinPath": "/home/gameserver/minecraft/bedrock_server",
  "WorldName": "sm_world",
  "Backups": {
    "EnableBackups": true,
    "BackupInterval": 60.0,
    "ArchivePath": "/home/gameserver/minecraft/backups/",
    "BackupsToKeep": 10,
    "OnActivityOnly": false,
    "StopBeforeBackup": false,
    "NotifyBeforeStop": 60,
    "BackupOnStartup": true,
    "PreExec": "",
    "PostExec": ""
  },
  "Renders": {
    "EnableRenders": true,
    "PapyrusBinPath": "/home/gameserver/papyruscs/PapyrusCs",
    "PapyrusOutputPath": "/var/www/html/minecraft/",
    "RenderInterval": 180.0,
    "PapyrusGlobalArgs": "-w $WORLD_PATH -o $OUTPUT_PATH --htmlfile index.html -f png -q 100 --deleteexistingupdatefolder",
    "PapyrusTasks": [
      "--dim 0",
      "--dim 1",
      "--dim 2"
    ]
  },
  "QuietMode": false,
  "HideStdout": true,
  "BusyCommands": true,
  "CheckForUpdates": true,
  "StopBdsOnException": true
}

It says "backup successful" instantly, and there's no data in said backup folder.

/home/gameserver/minecraft//vellum
vellum v1.2.3 build 157
       by clarkx86 & DeepBlue

Loading configuration "configuration.json"... Done!
Checking for updates...
Creating initial world backup...
[         VELLUM         ] Creating backup...
[         VELLUM         ]      -> Creating full world backup...
[         VELLUM         ] Backup done!
NO LOG FILE! - setting up server logging...
[2020-09-05 23:57:09 INFO] Starting Server
[2020-09-05 23:57:09 INFO] Version 1.16.20.3
[2020-09-05 23:57:09 INFO] Session ID ddca48b5-13da-4ddb-a5b9-33c1cba4622d
[2020-09-05 23:57:09 INFO] Level Name: sm_world
[2020-09-05 23:57:09 INFO] Game mode: 2 Adventure
[2020-09-05 23:57:09 INFO] Difficulty: 1 EASY
[2020-09-05 23:57:09 INFO] opening worlds/sm_world/db
[2020-09-05 23:57:13 INFO] IPv4 supported, port: 19132
[2020-09-05 23:57:13 INFO] IPv6 supported, port: 19133
[2020-09-05 23:57:13 INFO] IPv4 supported, port: 41590
[2020-09-05 23:57:13 INFO] IPv6 supported, port: 57779
[2020-09-05 23:57:18 INFO] Server started.

Here's the server log...

clvrk commented

Hey there!
When vellum gets executed, it creates an initial temporary backup, which is what you are seeing getting displayed instantly.
This is required for hot-backups to work, so vellum has a 1:1 mirrored copy of the world before vellum starts the server, so it can add/ delete only the modified files later on.
This temporary copy is created in the temp/ directory relative to the vellum executable, though it's not meant to be modified or copied.
The first actual archived backup will be created after 1 hour after vellum starts the server (according to your configuration.json with BackupInterval set to 60.0) and will be available in your ArchivePath. You can also manually perform backups with running the command

force start backup

in vellums command prompt.

I agree that the wording in the beginning is a bit misleading and several people have pointed out that they also were wondering why no backup was taken, so I will make sure to address this in the next update!

Thanks for the clarification.