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, 07:36

Using wget to update

Post by inpo » 10 Jul 2014, 14:49

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
Client Developer
Client Developer
Posts: 943
Joined: 03 Aug 2009, 12:57

Re: Using wget to update

Post by 4144 » 10 Jul 2014, 15:42

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
Borg Queen (Lead)
Borg Queen (Lead)
Posts: 1750
Joined: 18 Dec 2012, 06:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Using wget to update

Post by wushin » 10 Jul 2014, 15:46

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