|
|||||||
| OOTP 8/2007: General Discussions Talk about our upcoming version of the game... |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Minors (Single A)
Join Date: Apr 2005
Posts: 79
|
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 |
|
|
|
|
|
#3 (permalink) |
|
Hall Of Famer
Join Date: Aug 2002
Posts: 8,448
Thanked 105x in 53 posts
Infractions: 1/0 (0)
|
Yes, Kevin. Thanks for taking the time to develop this little gem. I want to start using it with v2007. I would assume there aren't any needed changes? In addition, is there a way to point the output to a particular drive?
__________________
"Try again. Fail again. Fail better." -- Samuel Beckett _____________________________________________ |
|
|
|
|
|
#5 (permalink) |
|
Minors (Single A)
Join Date: Apr 2005
Posts: 79
|
Hey guys - yep you can exclude files like this: -x*.rar
So if you wanted to exclude html I would assume (test it yourself) -x*.html or htm Full command would look like: "c:\program files\winrar\rar" u -as -m1 -r -x*.rar -x*.html OOTPSAVE.rar pause Good luck, Minnelli |
|
|
|
|
|
#6 (permalink) |
|
OOTP Developments
|
Hmm, this worked great. Unfortunately, I realized you do need HTML files if you want to keep box scores or logs.
![]() Still, I'm sure there are ways to tweak this further and make the process faster and generate smaller files. For example, if you use facegen, you could add: -xplayer*.jpg Because FaceGen doesn't really need you to keep the pics, because it can regenerate the same pic. |
|
|
|
|
|
#7 (permalink) |
|
Global Moderator
|
I've always turned off saving of box scores and logs because of the large number of files it creates, but I would like to be able to recreate box scores and logs, but there isn't enough data in the game summaries that are stored in the database to do so. (awaits Database Suggestions thread)
|
|
|
|
|
|
#10 (permalink) |
|
Hall Of Famer
Join Date: Aug 2002
Posts: 8,448
Thanked 105x in 53 posts
Infractions: 1/0 (0)
|
Thanks. I'm hoping to be able to shoot this over to the external hard drive for archiving and safe-keeping. On the other hand, it's not such a big deal to simply move it over there when completed.
__________________
"Try again. Fail again. Fail better." -- Samuel Beckett _____________________________________________ |
|
|
|
|
|
#11 (permalink) | |
|
Hall Of Famer
Join Date: Aug 2002
Posts: 8,448
Thanked 105x in 53 posts
Infractions: 1/0 (0)
|
Quote:
__________________
"Try again. Fail again. Fail better." -- Samuel Beckett _____________________________________________ |
|
|
|
|
|
|
#13 (permalink) |
|
Global Moderator
|
My WinRar is happily running unregistered. It does occassionally tell me that the 40 day trial period has ended (so it must be a random nag screen)
__________________
Of the things we say, think or do: Is it the truth? Is it fair to all concerned? Will it build goodwill and better friendships? Will it be beneficial to all concerned? OOTP X Utilities |
|
|
|
|
|
#14 (permalink) | |
|
Hall Of Famer
Join Date: May 2003
Location: Under The Christmas Fish
Posts: 4,735
Thanked 36x in 19 posts
|
I had posted this in minelli's thread last year, and I feel it bears repeating: if you don't want to deal with the nag screen, you can use 7-Zip, which is freeware.
If you install 7-Zip to its' default location, just change step 4 in minelli's list so that the command is either: "C:\Program Files\7-Zip\7z.exe" u LEAGUEFILE.zip -up1q1r2x1y2z1w2 -x!*.zip,*.bat -tzip or "C:\Program Files\7-Zip\7z.exe" u LEAGUEFILE.7z -up1q1r2x1y2z1w2 -x!*.zip,*.bat,*.7z -t7z -ms=off The first version will create a ZIP archive, the second will create a 7Z archive - ZIPs are more universal, 7Z offeres better compression (although it is a bit slower).
__________________
Quote:
Last edited by eriqjaffe; 11-07-2007 at 06:45 PM. |
|
|
|
|
|
|
#15 (permalink) |
|
All Star Starter
Join Date: Apr 2002
Location: Iowa
Posts: 1,972
Thanked 51x in 22 posts
|
Finally got around to trying this and it is great
Previously I was using winzip and zipping the entire .lg folder and burning to dvd. Acceptable 5 minutes or so to zip the league. With this little gem the first compression took a few minutes the second was less than a minute. To keep multiple save points I then rename the file to "xx-xxxxOOTPSAVE.rar" where xx-xxxx is the game number of my current season and the year. So if I've played 50 games in 2015 I name the file "50-2015OOTPSAVE.rar" and burn to dvd. Then rename back to OOTPSAVE on my HD for the next time I want to backup. DVD's are cheap while backups are priceless
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|