Problem using sqlite map online backup

User avatar
lag01
Member
 
Posts: 190
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag

Problem using sqlite map online backup

by lag01 » Sun Sep 21, 2014 14:18

Hello,
i almost got map online backup working (see attachment).
But there is problem, that backup never finishes, most likely because DB is written all the time, despite settings.
In minetest.conf i have these settings:
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
server_map_save_interval = 520
sqlite_synchronous = 0

I tough that means that minetest will write to database only every 520 seconds, but backups resets in few seconds!
Any ideas?
Attachments
minedb.py.zip
(1.29 KiB) Downloaded 164 times
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Problem using sqlite map online backup

by Krock » Sun Sep 21, 2014 14:28

I'm sure, minetest won't write all changes at once.
It will spread the load and save little parts instead of all together.

A server shutdown script would be better to do backups.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
lag01
Member
 
Posts: 190
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag

Re: Problem using sqlite map online backup

by lag01 » Sun Sep 21, 2014 14:47

Krock wrote:I'm sure, minetest won't write all changes at once.
It will spread the load and save little parts instead of all together.

Then i don't get why those settings are there...

Krock wrote:A server shutdown script would be better to do backups.

Well, i have things little more complicated...
So online backup really would help me there.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Problem using sqlite map online backup

by Krock » Sun Sep 21, 2014 14:59

lag01 wrote:
Krock wrote:I'm sure, minetest won't write all changes at once.
It will spread the load and save little parts instead of all together.

Then i don't get why those settings are there...

They're there to define the waiting time of "the little part" until it gets saved again.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
lag01
Member
 
Posts: 190
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag

Re: Problem using sqlite map online backup

by lag01 » Sun Sep 21, 2014 15:21

Ok, thanks.
No olnine backup then, too bad :(
 

User avatar
lag01
Member
 
Posts: 190
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag

Re: Problem using sqlite map online backup

by lag01 » Mon Sep 22, 2014 17:30

Hurray!
Changing to
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
pagestocopy = 2500000

makes it work!
At least on my laptop.
Now i am going to test it on my live server :)
 

User avatar
lag01
Member
 
Posts: 190
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag

Re: Problem using sqlite map online backup

by lag01 » Mon Sep 22, 2014 17:55

well....
first time that worked (making some lags on server).
When i run that second time(to sync to already existing backup file), it takes very long.
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 16 guests

cron