How to Save Map on Server Against World Corruption?

User avatar
Laser0073
Member
 
Posts: 53
Joined: Fri Jun 03, 2016 01:26
GitHub: Laser0073
In-game: Laser0073

How to Save Map on Server Against World Corruption?

by Laser0073 » Tue Jul 12, 2016 20:57

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
i5 6500 @3.2GHz, EVGA GTX 960 4GB ssc, 8GB DDR4, ASROCK Pro4S, 128GB.SSD, MT 0.4.15 dev, Ubuntu Studio 16.04LTS
 

User avatar
ARCHLINUX
Member
 
Posts: 44
Joined: Tue Jul 12, 2016 20:51

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

by ARCHLINUX » Tue Jul 12, 2016 22:20

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
♕GNU♛
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

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

by duane » Wed Jul 13, 2016 02:08

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.
 

User avatar
Laser0073
Member
 
Posts: 53
Joined: Fri Jun 03, 2016 01:26
GitHub: Laser0073
In-game: Laser0073

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

by Laser0073 » Wed Jul 13, 2016 23:31

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.
i5 6500 @3.2GHz, EVGA GTX 960 4GB ssc, 8GB DDR4, ASROCK Pro4S, 128GB.SSD, MT 0.4.15 dev, Ubuntu Studio 16.04LTS
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

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

by duane » Thu Jul 14, 2016 02:39

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?
 

User avatar
Laser0073
Member
 
Posts: 53
Joined: Fri Jun 03, 2016 01:26
GitHub: Laser0073
In-game: Laser0073

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

by Laser0073 » Thu Jul 14, 2016 12:06

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?
i5 6500 @3.2GHz, EVGA GTX 960 4GB ssc, 8GB DDR4, ASROCK Pro4S, 128GB.SSD, MT 0.4.15 dev, Ubuntu Studio 16.04LTS
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 82 guests

cron