Jump to content

Needing Help Backing Up Worlds


Recommended Posts

Hello! So I am having trouble backing up worlds in general, both local worlds hosted by me and my dedicated server. I've tried looking up on how to do both and only found how to back up my local worlds, but that guide is now outdated; all I know is that my worlds are located on "Documents\Klei\DoNotStarveTogether\(A bunch of numbers here, not sure if I should make that public) and there are these clusters 1-5; are these my local worlds? If I were to copy a cluster file would I be copying the world?

And is it even possible to back up a dedicated world? I've got no idea on where to go on that one. On the topic of hosting dedicated servers, how can I update the server? Every time the game receives an update, I can no longer find my server on the servers list, I assume it is outdated, but I have no idea on how to update it. When this happens I just shut it down and delete everything, then make a new one which takes a while and I'm getting sick of having to do this every time

@YesterdaysLemon Hello, for copying/backing up, you are correct, the Clusters 1-5 are your world files which correspond to each slot. You could copy each slot individually or copy the entire folder containing all the clusters.

Do keep in mind though, if you are to restore a world to an earlier version, for whatever reason, you can't copy to an empty cluster. This is because the weirdly game "thinks" that the cluster doesn't exist even though it does and won't load it correctly. The order for restoring should look like this:

(Optional) Create & load a "junk" world if the slot is empty
Exist DST
Delete the files in the Cluster_X folder
Copy & Paste the backup files into the Cluster_X folder
Load DST

I do caution you, when doing this, make sure to copy instead of move when you can, it's easy to accidentally ruin a save file

For Dedicated servers, I'd need a bit more info, are you using the Steam tool or did you use the guide?

@gaymime More or less follow the same instructions as before. Though in your case, it may be easier to just copy the entire DoNotStarveTogether folder and then put it on the other computer.

@ThemInspectors

Thank you for responding, for my old dedicated server I've used this steam guide

I've didn't even know there was a Steam tool, but this guide has me creating .bat files for each world and manually adding the worldgenoverride.lua and modoverrides.lua ; would you recommend I learn on how to use the Steam tool?

2 hours ago, YesterdaysLemon said:

@ThemInspectors

Thank you for responding, for my old dedicated server I've used this steam guide

I've didn't even know there was a Steam tool, but this guide has me creating .bat files for each world and manually adding the worldgenoverride.lua and modoverrides.lua ; would you recommend I learn on how to use the Steam tool?

Hello, no, there's no need, I just need to know so I can more or less figure out what's going on.

In your Klei Documents folder is there a folder called "MyDediServer"? If so, my bets are that is the world file for the server.

Second, would I be able to see your batch files? And are you hosting on the same user as you play on? (Like when you run your server you just keep your computer running?)

Finally, when it comes to updating, there are multiple ways to do it, the way I do it is run steamcmd in the server startup script but that might not be what you want because you still need to stop and start the server. Another way to do it is in the guide, though I'm less familiar with it. You'd need to take a look at it yourself if you want to do it that way.

 

@ThemInspectors

Yes on my computer there is a Klei Documents foloder with the folder "MyDediServer", If that's the world, can I just copy and save a world to make a new one, but keep the old one saved? Because that is my goal.

 

Here are the .bat files,

Overworld (start.bat):

dontstarve_dedicated_server_nullrenderer -console -cluster MyDediServer -shard Master

Caves (start2.bat):

dontstarve_dedicated_server_nullrenderer -console -cluster MyDediServer -shard Caves

And yes, the computer I use to run the server is the same one I play on,

 

On said guide it gave me a batch file script to update the server, it shuts down and relaunches the servers, but it last time I used it, it never updated the server, or at least I don't think it did

Here's the .bat file

update.bat:

net stop server_overworld
net stop server_cave
cd C:\steamcmd\steamcmd
steamcmd +login anonymous +force_install_dir C:\server +app_update 343050 validate +quit
net start server_overworld
net start server_cave

 

22 hours ago, YesterdaysLemon said:

@ThemInspectors

Yes on my computer there is a Klei Documents foloder with the folder "MyDediServer", If that's the world, can I just copy and save a world to make a new one, but keep the old one saved? Because that is my goal.


net stop server_overworld
net stop server_cave
cd C:\steamcmd\steamcmd
steamcmd +login anonymous +force_install_dir C:\server +app_update 343050 validate +quit
net start server_overworld
net start server_cave

 

Yes, yes if want you, you can copy off the world files and then reset the world to make a new one.

Could I also get the output of the updater bat file?

and the startup files are somewhere in C:\server ?

On 8/6/2020 at 2:30 PM, YesterdaysLemon said:

I'm not really sure what you mean  by "output of the updater", terribly sorry if that annoys you;

Yes both start1.bat and start2.bat are located in C:\server\bin with the update.bat

When you run the update.bat, there should be a command prompt that opens up and spews lots of information

Ah, thank you for the clarfication, here's the output,


C:\WINDOWS\system32>net stop server_overworld
The server_overworld service is stopping.
The server_overworld service was stopped successfully.


C:\WINDOWS\system32>net stop server_cave
.
The server_cave service was stopped successfully.


C:\WINDOWS\system32>cd C:\steamcmd\steamcmd
The system cannot find the path specified.

C:\WINDOWS\system32>steamcmd +login anonymous +force_install_dir C:\server +app_update 343050 validate +quit
'steamcmd' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\system32>net start server_overworld
The server_overworld service is starting.
The server_overworld service was started successfully.


C:\WINDOWS\system32>net start server_cave
The server_cave service is starting.

Looking at it now it may seem that it can not find the steamcmd, that may have been the issue, thanks for the help!!

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...