Backup world script

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • 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

SKR

New Member
Jul 29, 2019
6
0
0
I wanted to update a script I use to make a backup of the save directory (as my computer tends to crash, corrupting the world). But I can't find the directory where feed the beast places the world? Somewhere in %appdata%?

I'm running windows 7, and here's a copy of the script.

$date = Get-Date -uformat %Y%m%d
$fileextension = ".7z"
$filebase = "D:\Games\FeedTheBeastLauncher\FTB-" + $date + "-"
$archiver = "C:\Program Files\7-Zip\7z.exe"
$arc_opts = "a"
$minecraftdir = "???"

# Count up from 1 to find first unused file name.
# Also, pad numbers less that 10 with a 0.
$i = 1
do {
if ($i -lt 10)
{ $filename = $filebase + "0" + $i + $fileextension }
else
{ $filename = $filebase + $i + $fileextension }
$i++
}
while (Test-Path $filename)

& $archiver $arc_opts $filename $minecraftdir
 

KhrFreak

New Member
Jul 29, 2019
689
1
0
it saves in the modpack wherever you downloaded the launcher unless you manually set it elsewhere
 

Rikki21

New Member
Jul 29, 2019
277
0
0
D:\Games\FeedTheBeastLauncher\FTB- is where your FTB file is located right?

So then, it should be something like D:\Games\FeedTheBeastLauncher\FTB-\[MODPACK]\minecraft\saves

Where [MODPACK] is whatever mod pack you're using.
 

SKR

New Member
Jul 29, 2019
6
0
0
Hmm... can't find a "world" directory in there, but there is a "saves" directory. I guess the save dir was renamed? (I haven't played since before the 1.3.2 update). In that case, what is an NEI folder doing in the saves dir, should I include that as well?
 

warfighter67

New Member
Jul 29, 2019
238
0
0
Hmm... can't find a "world" directory in there, but there is a "saves" directory. I guess the save dir was renamed? (I haven't played since before the 1.3.2 update). In that case, what is an NEI folder doing in the saves dir, should I include that as well?
NEI is used to save bookmarked inventories I believe. It's up to you, however. Not needed in a backup, as if your computer crashes anyways, the NEI stuff shouldn't be affected.
 

Rikki21

New Member
Jul 29, 2019
277
0
0
D:\Games\FeedTheBeastLauncher\FTB-\[MODPACK]\minecraft\saves\[worldname]

Whatever you named your world, there should be a folder there in saves. It will have the level.dat, the data for all your dimensions and everything else for that world. That's the folder you're backing up. TBH I have no idea what the NEI folder in the saves directory does as there is also one in whatever world folders you have too.