Using wget to update

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
inpo
Newly Registered User
Posts: 7
Joined: 12 Sep 2013, 06:36

Using wget to update

Post by inpo »

Hi all, sometimes you probably have a problem with updating TMW data, like while the client downloading updates it get stoped at some % download because likely a bad internet connection, unfortunely the client doesn't retry it and just thrown an error.
To get successfully updates data the trick is to use wget to manually download updates from list of url based on resources.xml file.
1. cd to updates directory, copy resources.xml to resources.txt or anything, remove all texts except value of file attribute in all update elements, insert http://tmwdata.org/updates/ at each beginning of line, so you have list of url.
ex: <update type="data" file="misc-xml-0938aa1.zip" hash="fca16527" /> be http://tmwdata.org/updates/misc-xml-0938aa1.zip
2. run wget with these options: wget -c -T 10 -t 0 -i resources.txt
wget will download files listed in resources.txt, in case the download takes long to retrieve, it will timeout and retry at that point.

I hope it unambiguous. :alt-0:
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: Using wget to update

Post by 4144 »

Client using 3 mirrors, but sadly two from it is USA based, and one some CDN.
This mean for some people all of it may not work or work very unstable.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Using wget to update

Post by wushin »

Well if it used git to pull updates I think it be more sane, easier to debug and most git services already have CDN/Mirrors in every country.
The secret to getting all the important stuff done is doing nothing.
Post Reply