STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
37
IN-GAME
464
ONLINE
Founded
February 9, 2015
Neomuckel* Mar 21, 2016 @ 2:42pm
Rust Backup
Hello,
the rust script crashes so often and i can not find an error or something.
i type ./rustserver start and the script is started normaly but the rust .sav is not the current version.

so i want write a crontab that makes auto backups on two different times during the day.
how can i realize that ?
and how can i load the back up?

greetz neo
< >
Showing 1-1 of 1 comments
UltimateByte Mar 21, 2016 @ 3:14pm 
Not sure why you would do that, i think knowing that would be a better approach to begin with, but anyways...
Most of the save is in ~/serverfiles/server/rust-server/save
But in order to achieve a proper backup, you'd need the whole identity folder as there are also some data files from oxide (if using oxide) and the .db files.
(reminder : identity folder is in ~/serverfiles/server/rust-server)
Mine is 14MB. The server was wiped recently, but it shouldn't be that much to backup even for a big server.

As far as i understood, here is what data you got in the identity folder that you might wanna backup :
- /save folder : Inventories, objects on maps, resources, user constructions...
- Storage.db : Pictures and drawings on frames (wooden panels and so on)
- UserPersistence.dv : Player information, blueprints, etcc...
- oxide/data : Containing plugins' data, if using oxide

Important note : The map itself isn't save anywhere, it just depends on the map size (default 4000) and the seed number (default 0).

What you wanna do in order to save everything you need is write a bash script that copies that identity folder into a backup/${currentdate} folder, and cronjob that script.
Then if you need to rollback, just shutdown the server, delete the identity folder (or rename to bak.rust-server) and put one of the backups instead.
I don't have much time to do that script, but maybe it'll be the occasion for you to make some bash scripting, that's how we learn ;)

Now, i wrote all that to tell you in the end : the latest "main save" being 0.sav, and the server keeping 5 saves in total, if you just wanna rollback to a previous version, then rename 0.sav to bak.0.sav whaver save you wanna rollback to, to 0.sav.
It's that easy.
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Mar 21, 2016 @ 2:42pm
Posts: 1