Incremental world backup

Post Reply
User avatar
MatyasP
Member
Posts: 75
Joined: Wed Jan 19, 2022 22:12
GitHub: Matyas-Pilz
In-game: MatyasP
Location: Prague, Czech republic
Contact:

Incremental world backup

by MatyasP » Post

My new idea is about backup functions in Luanti. This contain:
1. World backup - are more variants (only copying to backup folder, saves to zip, 7z, tar.gz or similar)
2. After point before - add some features for incremental backups of world

User avatar
TenPlus1
Member
Posts: 4132
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: Incremental world backup

by TenPlus1 » Post

+100 .. many players and server owners have been wanting this feature for some time, as well as a way to compress the map to remove unused areas during backup.

User avatar
Blockhead
Moderator
Posts: 2562
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: Incremental world backup

by Blockhead » Post

It's possible to incrementally backup most of the world data if you use PostgresSQL and configure it for that. What's not possible is guaranteeing a consistent state between that and all of the random files that mods will put in your world directory if you were to snapshot that with a basic file copy.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Linuxdirk
Member
Posts: 3301
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Incremental world backup

by Linuxdirk » Post

Wouldn’t the new database format make incremental backups easier, now that the world coordinates are part of the database table, instead of just a blob?

Like, only check new or changed coordinates compared to the previous backup and then storing the diff? (Needs some fiddling with SQL, though.)

User avatar
bosapara
Member
Posts: 644
Joined: Fri Apr 07, 2017 08:49

Re: Incremental world backup

by bosapara » Post

MatyasP wrote:
Fri Jun 06, 2025 07:11
My new idea is about backup functions in Luanti. This contain:
1. World backup - are more variants (only copying to backup folder, saves to zip, 7z, tar.gz or similar)
2. After point before - add some features for incremental backups of world
Sounds good, but who and when does it implement? Much more simple solution to make your map smaller: remove unprotected areas with basic sqlite tools:

Image

User avatar
MatyasP
Member
Posts: 75
Joined: Wed Jan 19, 2022 22:12
GitHub: Matyas-Pilz
In-game: MatyasP
Location: Prague, Czech republic
Contact:

Re: Incremental world backup

by MatyasP » Post

bosapara wrote:
Fri Jun 06, 2025 20:30
MatyasP wrote:
Fri Jun 06, 2025 07:11
My new idea is about backup functions in Luanti. This contain:
1. World backup - are more variants (only copying to backup folder, saves to zip, 7z, tar.gz or similar)
2. After point before - add some features for incremental backups of world
Sounds good, but who and when does it implement? Much more simple solution to make your map smaller: remove unprotected areas with basic sqlite tools:
Image
I have server for friends from real life - small community of public transport fans. Our server is for building railways (and cities near railways etc.). We need much of backups because our old world ended for "database disk is malformed" and because save the history of game world for remembrance.

User avatar
bosapara
Member
Posts: 644
Joined: Fri Apr 07, 2017 08:49

Re: Incremental world backup

by bosapara » Post

MatyasP wrote:
Sat Jun 07, 2025 19:22
We need much of backups because our old world ended for "database disk is malformed" and because save the history of game world for remembrance.

You can make backups of protected areas only. In my case I can save a map with size 600kb instead of 900mb. Very useful when need to keep 5-10 backups of the game world.
This only works well with protection mod: "areas". With "protection redo" (nodes version) mod it sucks.

I bet that this particular map saving feature will be added to the minetest engine instead of incremental version.

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests