Page 1 of 1

Minetest Worlds Backup

PostPosted: Tue Dec 27, 2011 11:25
by franky97
I created a program written in Gambas (for now only works on Ubuntu) that allows you to create backup copies of files in the world.
It is very easy to use:
1 - Open the program.
2 - Click on the button for backup.
3 - Select the folder where to create backup.

Screenshot:

Image

Download 0.0.1:

http://www.uploading.to/p7q1yeg0xsqu


Sorry for my bad english.

PostPosted: Tue Dec 27, 2011 11:33
by sfan5
You should change the button text

PostPosted: Tue Dec 27, 2011 11:37
by franky97
The text in the screenshot is in Italian because the language I use on Ubuntu is Italian. English is also available.

PostPosted: Tue Dec 27, 2011 11:49
by neko259
Write a program with window and button instead of using one copy command to copy sqlite base? No way >_<

PostPosted: Tue Dec 27, 2011 12:42
by xyz
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
xyz@keeg:~/_minetest-backups$ cat dobackup.sh 
DATE=`/bin/date '+%d.%m.%Y'`
rm -r /home/xyz/_minetest-backups/.minetest/
cp -r /home/minetest/.minetest/ /home/xyz/_minetest-backups/
tar -cvzf /home/xyz/_minetest-backups/backup_$DATE.tar.gz /home/xyz/_minetest-backups/.minetest/

Putin' to cron and enjoy ;)

PostPosted: Tue Dec 27, 2011 17:31
by RAPHAEL
Or... fire up a file manager. Copy world folder somewhere else. Rename it with a date.

However I have been tempted to write up a bash script for "properly backing up minetest settings". Just been too busy.

PostPosted: Tue Dec 27, 2011 18:54
by jordan4ibanez
or get simple backup!

i use it on mine and it auto backs up the map every hour!
http://imgur.com/gyz9i,oW8E4,bjOxz (theres 3 images)

and the best part is ITS FREE, AAAAAND, it secures your files!

the website:
http://simplelinuxbkup.sourceforge.net/

heres the ppa:
ppa:nssbackup-team/ppa

search up:
sbackup

and install the gtk version

if i left anything out let me know :D

PostPosted: Tue Dec 27, 2011 19:35
by neko259
/0

Why use graphical software for backups? You can always write 3 lines script instead of installing megabytes of software with strange front-ends.

PostPosted: Tue Dec 27, 2011 19:53
by jordan4ibanez
that is not a strange front end..its a direct front end..and it has been working and encrypting the world data of my servers map for 2 days straight...and with that software you do not even need to manually replace the world if something happens..you just start up the restoration manage..select the date..and then click the time and it will replace that world back into the server

PostPosted: Wed Dec 28, 2011 16:48
by maddogg
cool tool mate gr8 work

PostPosted: Thu Dec 29, 2011 12:46
by celeron55
You should note that the sqlite database should never be copied on-the-fly, because the copy can get corrupted if minetest writes to the original at the same time.

Personally I have ended up with a corrupted copy at least once. It will load just fine, but many parts of the world can be complete rubbish.

You need to lock the database, then copy, and then unlock it. There are some examples for doing that on the net. Eg. here is something: http://stuvel.eu/blog/55/safely-copy-a-sqlite-database

PostPosted: Sat Dec 31, 2011 05:27
by jordan4ibanez
i just realized that that was a program..i misread the post..good job :D