Downloading fgdata using bittorrent: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
Separately downloading fgdata from git is only of interest to those who wish to create a local flightgear development or build environment. 
#REDIRECT [[FlightGear Git: data developers#Cloning using BitTorrent]]
 
There are other means of obtaining flightgear that install only the executables and necessary data.  These use far less disk space.
 
When fgdata was much larger, attempts to clone fgdata from git on gitorious (where it was hosted at the time) frequently failed because the archive was so large.
 
Downloading with bittorrent was proposed as an alternative and a torrent  was created at this url: http://mxchange.org:23456/.  This torrent appears to be non-operational.
 
Recently flightgear reduced the size of the fgdata .git archive substantially by removing Aircraft to a separate repository.  That brought fgdata down to 2.1 GB.
 
I do not know of a current process for creating torrents of fgdata.  Personally, I would only create one if the developers approve the effort and stable network resources for hosting the bundle or bundles is available.
 
If the developers of flightgear see it as necessary or advantageous to provide bittorrents for initial downloads of fgdata, a new bundle would need to be created and hosted.  The bundle could be periodically updated, possibly once for each release.  Syncing with sourceforge's git would keep the user's local data up to date, but this would require a user to install and use git commands.
nd this is the solution:
 
==== Bundle ====
For the FlightGear-data there is a [http://www.kernel.org/pub/software/scm/git/docs/git-bundle.html git-bundle] (snapshot) [http://mxchange.org:23456/file?info_hash=%BF%FF%AB%0C%16%BF%8Eg%B8%A0%CFw%01%0A%5D%8F%3F%81%96y torrent] ([http://mxchange.org:23456/ tracker]; [http://flightgear.mxchange.org/pub/fgfs/fgdata.bundle.md5 md5]|[http://flightgear.mxchange.org/pub/fgfs/fgdata.bundle.sha1 sha1]|[http://flightgear.mxchange.org/pub/fgfs/fgdata.bundle.sha512 sha512]) available. This way you can resume interrupted downloads.  At the moment there are only a few seeds so it will be slow.  When you finish, be sure to allow seeding from your copy.
 
After unpacking it only a comparatively small amount of data has to be transferred from the git server to synchronize your repository. Also download any fgdata-update-*.bundle updates linked in the [http://mxchange.org:23456/ tracker]. (none as of 1-May-2016) possibly more later.  See also the Develop sections in [[FlightGear Git on Windows]].
 
The following may be obsolete.  I'm testing it today.
If it is, I'll be updating this soon. Or if you know how to update it so it works you can....
 
Create a directory on your computer where you'll be storing the data.
Change into that folder.
Do the following steps to extract the bundle and bring the repository up to date:
git clone fgdata.bundle fgdata
cd fgdata
git checkout -b master-tmp
#for N in 1 2 3 4 5 6 7 8; do git pull ../fgdata-update-00$N.bundle master; done
git remote rm origin
git remote add origin git://git.code.sf.net/p/flightgear/fgdata flightgear-fgdata
git fetch origin
git branch --track next origin/next
git checkout next
git branch -D master-tmp
 
You should suspect that the torrent is out of date if based on the printed progress you estimate the data download during the fetch will exceed 1GB.
 
 
===The current best alternative===
 
Download with git, but use depth=1 to ignore history
 
:<code>{{fgdata clone|opt=--depth=1}}</code>
 
This command gets only the most recent version of the data.  As of May 1, 2016 it downloads just over 1GiB
 
[[User:Callahanp|Callahanp]] ([[User talk:Callahanp|talk]]) 11:17, 30 April 2016 (EDT)
 
[[Category:Development]]

Latest revision as of 20:07, 6 May 2016