Page 1 of 1

How to Save Map on Server Against World Corruption?

PostPosted: Tue Jul 12, 2016 20:57
by Laser0073
Hi,
Recently I created my first dedicated server, and I was wondering if there is a way to save the map against crashes, power loss, etc? Any help is appreciated!
P.S. I'm running Ubunt Server 16.04

Re: How to Save Map on Server Against World Corruption?

PostPosted: Tue Jul 12, 2016 22:20
by ARCHLINUX
log your err plz

on linux try check permissions flags path where you map save
next:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo chmod -r 777 /path to map

Re: How to Save Map on Server Against World Corruption?

PostPosted: Wed Jul 13, 2016 02:08
by duane
Laser0073 wrote:Hi,
Recently I created my first dedicated server, and I was wondering if there is a way to save the map against crashes, power loss, etc? Any help is appreciated!
P.S. I'm running Ubunt Server 16.04


Just back up the world directory like anything else. A cron-based rolling set of tar files would work. There are countless backup solutions out there. If something goes wrong, restore the working files.

Re: How to Save Map on Server Against World Corruption?

PostPosted: Wed Jul 13, 2016 23:31
by Laser0073
Thanks for your replies, however I will backup the worlds on a daily basis. I was wondering how I could automatically save the world while the server was active, like every 5-10 minuites.

Re: How to Save Map on Server Against World Corruption?

PostPosted: Thu Jul 14, 2016 02:39
by duane
Laser0073 wrote:Thanks for your replies, however I will backup the worlds on a daily basis. I was wondering how I could automatically save the world while the server was active, like every 5-10 minuites.


A cron-based backup can do that too -- just set it to go off every five minutes. The server doesn't have to shut down -- there's nothing magic about it. It's just using a standard database system to save data. You're going to lose some data any time you roll back, but you're not likely to have a corrupt database at any point.

Are you under the impression that the server doesn't save until you shut down?

Re: How to Save Map on Server Against World Corruption?

PostPosted: Thu Jul 14, 2016 12:06
by Laser0073
Hmm, this is interesting! So, minetest saves the world even while you're playing. Is there a way to change the frequency of the saves from minetest.conf? A bit off topic, what causes word corruption?