View Single Post
Old 03-26-2007, 01:10 PM   #1 (permalink)
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 80
OOTPSAVE Utility - Backup Restore Save

OOTPSAVE Utility

I posted this back for 2006 before we had an "in-house" utility built in. However, we still need to backup our files on a regular basis. So in case you missed it first time around...

This batch job will save/update your league file. It only updates files that have changed since the last save. The best time to use it is after you save your game file. This will allow you to always go back and grab a good copy. I created this because of the save corruptions I kept encountered. Since this synchronizes the files, it will always capture new files and purge files that have been deleted by OOTP.

Required – WinRAR (http://www.rarlab.com/) – Install in default location. It works with my unregistered version...

Process:
Step 1 – Open up Windows Explorer to you saved games directory (i.e. My Documents --> \data\saved_games\test123.lg)
Step 2 – Right click folder to create a new text document (right click – new – text document) File named New Text Document.txt will be created
Step 3 – Open the new document (New Text Document.txt) and Paste the following in the file

"c:\program files\winrar\rar" u -as -m1 -r -x*.rar OOTPSAVE.rar
pause

Step 4 – Save as OOTPSAVE.bat
Step 5 – Within Windows Explorer double click OOTPSAVE.bat

The first time this is run on a league it will take a few minutes, but have no fear, subsequent backups/updates will work a lot faster. Note - at year end, I close OOTP. Go to the folder OOTPSAVE it, take that rar file and rename it 1-1-2012 OOTPSAVE.rar -- this way I have a full copy to fall back on at any time.

Code breakdown:
Rar – is the command line executable for winrar
u is the update switch
-as synchronizes the files
-r allows it to capture all the sub folders
-m1 makes it go faster than other compression formats
-x*.rar stops it from including other rar files in the folder
OOTPSAVE.rar can be anyname you want with a .rar
Pause shows you that it completed – if you remove it the window will disappear when the update is complete.

I’m sure a lot of folks can probably improve this, but I wanted to get something out that was working for me. Post any complaints here…I am not responsible for accidentally rar’ing up your whole drive and screwing something up…Give it a test and let us know what you think.

Original thread for 2006 - this also has some comments on 7zip and WinZip OOTPSAVE Utility - Backup Restore Save

Enjoy,
Kevin Minnelli
minnelli is offline   Reply With Quote