Using wget to update
Posted: 10 Jul 2014, 13: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.
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.