[solved] Does `save-off` command work in paper?

Hello.

I’ve setup a private paper server with a couple of plugins (floodgate, geyser, serverlogin), and everything works perfectly, huge props to developers!

However, when I tried to implement backup system, I ran into the issue that server contiunes to update world files even after save-off admin command. Backup process is extemely simple - I issue save-off and save-all via mcrcon command and just tar the datadir.

To debug the problem I added timestamp file and listed files, changed after timestamp before issuing save-on command. Here’s the listing:

    95893      9 drwxr-xr-x   3 minecraft minecraft        7 Oct 19 09:33 /srv/minecraft/data/default_the_end
    95724    157 -rw-r--r--   1 minecraft minecraft   552960 Oct 19 09:30 /srv/minecraft/data/default_the_end/DIM1/region/r.-1.0.mca
    95722    161 -rw-r--r--   1 minecraft minecraft   602112 Oct 19 09:30 /srv/minecraft/data/default_the_end/DIM1/region/r.0.0.mca
    95723    165 -rw-r--r--   1 minecraft minecraft   507904 Oct 19 09:30 /srv/minecraft/data/default_the_end/DIM1/region/r.-1.-1.mca
    95725    133 -rw-r--r--   1 minecraft minecraft   552960 Oct 19 09:30 /srv/minecraft/data/default_the_end/DIM1/region/r.0.-1.mca
    95900      5 -rw-r--r--   1 minecraft minecraft       90 Oct 19 09:33 /srv/minecraft/data/default_the_end/DIM1/data/raids_end.dat
   146744      5 -rw-r--r--   1 minecraft minecraft     1309 Oct 19 09:33 /srv/minecraft/data/default_the_end/level.dat
    90064      9 drwxr-xr-x  11 minecraft minecraft       16 Oct 19 09:33 /srv/minecraft/data/default
    95372      5 -rw-r--r--   1 minecraft minecraft       90 Oct 19 09:33 /srv/minecraft/data/default/data/raids.dat
   146742      9 -rw-r--r--   1 minecraft minecraft     4420 Oct 19 09:33 /srv/minecraft/data/default/level.dat
    90074      5 -rw-r--r--   1 minecraft minecraft    57344 Oct 19 09:31 /srv/minecraft/data/default/poi/r.0.0.mca
    95886      9 drwxr-xr-x   3 minecraft minecraft        7 Oct 19 09:33 /srv/minecraft/data/default_nether
    95721   7061 -rw-r--r--   1 minecraft minecraft  7823360 Oct 19 09:30 /srv/minecraft/data/default_nether/DIM-1/region/r.0.-1.mca
    95719   5317 -rw-r--r--   1 minecraft minecraft  6144770 Oct 19 09:30 /srv/minecraft/data/default_nether/DIM-1/region/r.-1.-1.mca
    95720   5173 -rw-r--r--   1 minecraft minecraft  6619136 Oct 19 09:30 /srv/minecraft/data/default_nether/DIM-1/region/r.-1.0.mca
    95718   4949 -rw-r--r--   1 minecraft minecraft  5877927 Oct 19 09:30 /srv/minecraft/data/default_nether/DIM-1/region/r.0.0.mca
    96041      5 -rw-r--r--   1 minecraft minecraft       90 Oct 19 09:33 /srv/minecraft/data/default_nether/DIM-1/data/raids.dat
   146743      5 -rw-r--r--   1 minecraft minecraft     1229 Oct 19 09:33 /srv/minecraft/data/default_nether/level.dat

At the moment of cronjob execution there were no players on the server, so I do not understand what needed to be saved in the first place, and why the server still writes something after save-off.

It is not a big issue - I can just stop the server, there are time periods, when there will almost definitely be no users on the server, but this seems like a bug to me. So, is it a known bug, or do I do something wrong?

Paper: 1.16.3 build 209
JRE: 11.0.8

save-off works fine in paper, just, “what it does” (as it does in vanilla) is prevent chunks from being added to the save queue, meaning that existing chunks in that queue will still save, as will varying other bits of data

Thanks for the clarification. Well, it seems stop/start it is then…