Automatic Backup Program

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Yusunoha

New Member
Jul 29, 2019
6,440
-4
0
so I'm kind of sick of dying and ragequitting because of my derps in worlds, and I am looking for a program that makes a backup of the world every 20 minutes or so. I've tried looking on the minecraftforum and wiki for some programs, but most are outdated and the once who do work don't have everything I am looking for.

so I am basically looking for a program that automatically backups your world at a set interval, and keeps about 5 latest backups saved, and deleted the older backups. the program ofcourse needs to be compatible with the FTB launcher, which most are not since they only work with the vanilla minecraft folder...

so, does anyone know a program like this that can help me?
 

PhilHibbs

Forum Addict
Trusted User
Jan 15, 2013
3,174
1,128
183
Birmingham, United Kingdom
I wrote a simple batch file to back up my game saves but I run it manually after exiting the game. Would that do? I haven't made a version to back up my FTB games yet, must get around to that, as I nearly lost my world a couple of times to Mystcraft crashes.
 

dede24

New Member
Jul 29, 2019
3
0
0
I wrote a simple batch file to back up my game saves but I run it manually after exiting the game. Would that do? I haven't made a version to back up my FTB games yet, must get around to that, as I nearly lost my world a couple of times to Mystcraft crashes.
Yeah that would be helpfull if you post it.
At least for me it would be helpfull :)
 

Yusunoha

New Member
Jul 29, 2019
6,440
-4
0
I wrote a simple batch file to back up my game saves but I run it manually after exiting the game. Would that do? I haven't made a version to back up my FTB games yet, must get around to that, as I nearly lost my world a couple of times to Mystcraft crashes.

I was looking more for an automatic backup program, because I constantly keep forgetting to backup the save if I do it manually.
 

PhilHibbs

Forum Addict
Trusted User
Jan 15, 2013
3,174
1,128
183
Birmingham, United Kingdom
You could have a batch file that runs the backup and then runs the launcher. Make an icon that runs the batch, and always use that instead of the launcher. This would make a nice feature for the launcher, actually, an "auto world back-up" checkbox.
 

Heema

New Member
Jul 29, 2019
19
0
0
yeah i have the same thing, i made a script in linux that make a backup and leave five old backups and deletes the rest then runs the launcher

i also have the ftb folder in my dropbox for extra safety :)
 

PhilHibbs

Forum Addict
Trusted User
Jan 15, 2013
3,174
1,128
183
Birmingham, United Kingdom
My batch file copes the zip to my Dropbox as well. It has a problem with spaces in the directory name though, so if I get around to making a FTB version tonight then the user would have rename their save directory to remove any spaces. That doesn't affect the world name, you can still have "New World" in a directory called "NewWorld". Also it uses 7zip which is a free download.
 

WitherSauce

New Member
Jul 29, 2019
82
0
0
If your more interested in SMP backups (although i suspect you are talking about SPP), McMyAdmin, a gui admin interface for minecraft servers, can set quit a few scheduled tasks, including world saves and backups, and the ability to keep it delete older if over a set number. The scheduler also allows you to execute programs/ scripts in a folder called Exec. Basically, the scheduler can do anything.

One caveat is that if your using a hosted server, they have likely disabled that the scheduler can execute scripts/ programs, but in almost all cases the backup and many other options are left enabled. Works perfectly with FTB/ forge.

I think you do need to pay for it though.
 

PhilHibbs

Forum Addict
Trusted User
Jan 15, 2013
3,174
1,128
183
Birmingham, United Kingdom
OK here's my super-simple backup script. Download zip.exe from InfoZip, and save that file and this script file in the same root folder as the FTB Launcher. It is hard-coded to look in Direwolf20 for your saves, so if you're using Mindcrack then you'll have to change that.

Make a shortcut that runs it with a parameter of your game save directory, e.g. if you save it as ftbb.cmd and your world directory is NewWorld then the command would be "ftbb.cmd NewWorld". Like I said earlier, it can't cope with spaces in the directory name so rename your directory to remove any spaces or any other dodgy characters. The shortcut should look like this:
ftbb.png


Also the path to my Dropbox Public folder is hard-coded, change the path to match yours or remove the line.
Code:
cd "Direwolf20\minecraft\saves"
del %1_5.zip
ren %1_4.zip %1_5.zip
ren %1_3.zip %1_4.zip
ren %1_2.zip %1_3.zip
ren %1_1.zip %1_2.zip
ren %1.zip %1_1.zip
zip -r %1.zip %1
copy %1.zip "F:\My Dropbox\Public"
cd ..\..\..
FTB_Launcher.exe
I couldn't find where to download zip.exe so I put a copy in my Dropbox.

If you ever need to restore, just rename your game save directory and open the appropriate backup and drag the folder out of it.

*Edit* Better version that renames instead of copying
 

Yusunoha

New Member
Jul 29, 2019
6,440
-4
0
OK here's my super-simple backup script. Download zip.exe from InfoZip, and save that file and this script file in the same root folder as the FTB Launcher. It is hard-coded to look in Direwolf20 for your saves, so if you're using Mindcrack then you'll have to change that.

Make a shortcut that runs it with a parameter of your game save directory, e.g. if you save it as ftbb.cmd and your world directory is NewWorld then the command would be "ftbb.cmd NewWorld". The shortcut should look like this:
ftbb.png


Also the path to my Dropbox Public folder is hard-coded, change the path to match yours or remove the line.
Code:
cd "Direwolf20\minecraft\saves"
del %1_5.zip
ren %1_4.zip %1_5.zip
ren %1_3.zip %1_4.zip
ren %1_2.zip %1_3.zip
ren %1_1.zip %1_2.zip
ren %1.zip %1_1.zip
zip -r %1.zip %1
copy %1.zip "F:\My Dropbox\Public"
cd ..\..\..
FTB_Launcher.exe
I couldn't find where to download zip.exe so I put a copy in my Dropbox.

If you ever need to restore, just rename your game save directory and open the appropriate backup and drag the folder out of it.

*Edit* Better version that renames instead of copying

thanks alot, I'll ty it out :)