|
|||||||
| Earlier versions of OOTP: General Discussions General chat about the game... |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#21 (permalink) |
|
Major Leagues
Join Date: Jan 2006
Location: Perth, Western Australia
Posts: 368
Thanks: 1
Thanked 2x in 2 posts
|
Got it working with WinRAR 3.51, but the more recent script didn't work. Had to use:
"c:\program files\winrar\rar" u -as -m1 -r -x*.rar OOTPSAVE.rar pause |
|
|
|
|
|
#22 (permalink) |
|
Minors (Single A)
Join Date: Apr 2005
Posts: 80
Thanks: 0
Thanked 0x in 0 posts
|
Glad you got it wokring. the -x*.zip was just to stop it zipping up the winzip files when I was testing, so your code is perfect for just .rar and game files.
How does it work with the demo verison? Minnelli |
|
|
|
|
|
#24 (permalink) | |
|
Hall Of Famer
Join Date: May 2003
Location: Under The Christmas Fish
Posts: 5,236
Thanks: 15
Thanked 337x in 174 posts
|
Quote:
All you need is the command-line version (which you can find on their "downloads" page). Unzip that somewhere into your %path%, (somewhere like c:\windows\system32 should be fine), and then you can run this command in a batch file from inside your league directory: 7za.exe u LEAGUEFILE.zip -up1q1r2x1y2z1w2 -x!*.zip,*.bat -tzip syntax info: 1) The first "u" tells 7za that it's an update function (but it will create a new archive if one doesn't exist) 2) LEAGUEFILE.zip is the name of the file you want to create - you can call it anything. I don't know if putting in the extention here overrides the -t switch (see below) or not. 3) -up1q1r2x1y2z1w2 is 7za's way of telling it what to do with files if they are new/different/older/what have you - I took it right from 7-zip's help file. 4) -x!*.zip,*.bat will exclude all ZIP and BAT file from being added to the archive. 5) -tzip tells it to use the zip format. 7-zip can't create RAR files, but it can create the following: 7z, zip, gzip, bzip2 or tar. 7-zip isn't the fastest thing in the world, but it'll get the job done without any shareware nags. I haven't tested it on OOTP, but I have tried it on some other directories and it works as expected.
__________________
Last edited by eriqjaffe; 06-26-2006 at 06:05 PM. |
|
|
|
|
|
|
#25 (permalink) |
|
Minors (Single A)
Join Date: Apr 2005
Posts: 80
Thanks: 0
Thanked 0x in 0 posts
|
Good Find!!!
I got it working by installing 7zip and 7zip command line to c:\program files\7-zip I used the following batch command: "c:\program files\7-zip\7za.exe" u 7ZIPSAVE.zip -r -up1q1r2x1y2z1w2 -x!*.rar -x!*.zip -tzip eriqjaffe's analysis of -up1q1r2x1y2z1w2 is dead on out of the manual - it's what you want to backup the update properly. I added -r for recursive directories. I tried it with the last command -t7z instead on -tzip and changed the saved named to .7z but the .7z works on the first save but the 7z format does NOT allow updates!!!, so don't even try it until they update the 7z standard. As for speed it is very similar to the using WinZip, which I mention earlier is a little slower with OOTP still opened. Testing went like this: Forward game one day, Game - Save Game, wait, run bat file with tzip, then winzip, then winrar | times 58 seconds with both 7zip and winzip, 25 with winrar. The 7zip utility sped up a tad without compression, but the file was 360MB instead of the zip and rar size of about 60MB. Bottom line for me I will stick with WinRar but the 7zip command line utility is a solid choice for anyone who does not own winrar or want to deal with the nags. Kevin Minnelli |
|
|
|
|
|
#26 (permalink) | |
|
Hall Of Famer
Join Date: May 2003
Location: Under The Christmas Fish
Posts: 5,236
Thanks: 15
Thanked 337x in 174 posts
|
Quote:
The 7z format tends to have a higher compression ratio, but it's a bit slower getting there...so it may be a good option if you're somewhat cramped for disk space. |
|
|
|
|
|
|
#27 (permalink) |
|
Hall Of Famer
Join Date: Jul 2002
Location: Detroit, MI
Posts: 3,496
Thanks: 42
Thanked 48x in 25 posts
|
bump -- where are you going... get back on the first page where you belong.
__________________
Useful OOTP Links: Webstore -- Download -- Download (OLD VERSIONS) -- Tech Support -- License Problems -- Newsletters -- Padresfan's Mod Site -- OOTP Merchandise |
|
|
|
|
|
#28 (permalink) |
|
Major Leagues
Join Date: Nov 2003
Location: Central NJ
Posts: 331
Thanks: 0
Thanked 0x in 0 posts
|
Any chance of getting this thread sticky-ed? I saw it, forgot about it, just found it again, and wish I had it before my crash yesterday that corrupted my league database.
This is a great utility! |
|
|
|
|
|
#30 (permalink) |
|
Hall Of Famer
Join Date: Dec 2001
Posts: 2,039
Thanks: 25
Thanked 63x in 27 posts
|
this works fine
I still miss the in-game full backup and restore which worked perfectly for years.
__________________
"In a text sim - Immersion is everything" -Me "Judge a man not by the color of their skin, but by the content of their character" -Martin Luther King "Not everything that counts can be counted, and not everything that can be counted counts." -Einstein "The man who views the world at 50 the same as he did at 20 has wasted 30 years of his life." -Muhammad Ali "Baseball statistics are like a girl in a bikini. They show a lot, but not everything." -Toby Harrah |
|
|
|
|
|
#31 (permalink) |
|
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 6,720
Thanks: 200
Thanked 1,393x in 513 posts
|
I've added a link to this thread to the "Backups" thread in the FAQ forums
__________________
Andreas Raht andreas@ootpdevelopments.com Out of the Park Developments Out of the Park Baseball Development Team Title Bout Development Team |
|
|
|
|
|
#32 (permalink) | |
|
Major Leagues
Join Date: Apr 2002
Location: Spring, Tx
Posts: 407
Thanks: 0
Thanked 1x in 1 post
|
Quote:
|
|
|
|
|
|
|
#34 (permalink) |
|
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 6,720
Thanks: 200
Thanked 1,393x in 513 posts
|
No need to bump this thread! There's a link to it in the FAQ!
__________________
Andreas Raht andreas@ootpdevelopments.com Out of the Park Developments Out of the Park Baseball Development Team Title Bout Development Team |
|
|
|
|
|
#36 (permalink) |
|
Minors (Double A)
Join Date: Oct 2003
Location: Springfield, IL
Posts: 144
Thanks: 4
Thanked 0x in 0 posts
|
Anyone use IZarc?
Great utility here, I just noticed it. Is there any way one of you command line gurus could set up a batch file for IZarc? It uses almost all of the different file types that people would usually use, all in one program, with command line capability. (As of now, it can't create RAR, but it can extract from them). I haven't tried any of the batch files listed here (as I dont want to fudge up my files), but I would like to know if there is something similar to this 'auto backup' I could use. Thanks for any help.
www.izarc.org
__________________
"Baseball. The Boston Celtics and the Los Angeles Lakers could be playing for the championship, and I'd rather be here watching the Angels and Yankees." --John Wooden, on his favorite sport (Los Angeles Times, 2005) |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|