[ckan-dev] Import Datasets and Data Using Harvester
David Lemayian
dlemayian at gmail.com
Mon May 6 08:10:37 UTC 2013
Thanks Sean! Figured as much but thought there would have been an easier
way.
On 6 May 2013 10:50, Sean Hammond <sean.hammond at okfn.org> wrote:
> > I have 2 ckan instances; ckan1 and ckan2. I want to move datasets and the
> > actual data from ckan1 to ckan2 such that it downloads from ckan2. I have
> > installed the ckanext-harvest (release v2.0) and have managed to harvest
> > from another cKan instance but it seems to link the download to the ckan1
> > instance. How can I achieve this?
>
> Are you talking about resource files that you've uploaded to CKAN's
> FileStore?
>
> Once you've moved the metadata (either by harvesting, or using a simple
> paster db dump and paster db load) you then need to move the files.
>
> As far as I know, there isn't a great, automatic way to do this yet.
> Assuming you're using local file storage with the FileStore, you should
> be able to manually copy the contents of your ofs.storage_dir from
> server 1 to server 2. After that, a link to an uploaded file like
> http://server1.com/data/foobar should work if you replace server1.com
> with server2.com.
>
> Next, you need to go into your CKAN database and change all the
> server1.com references to server2.com. The references are in the
> `resource` table in your CKAN database.
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
--
David Lemayian
E: dlemayian at gmail.com | T: +254721107650 | Skype: David.Lemayian |
Twitter: @DavidLemayian <http://twitter.com/DavidLemayian> | W:
www.davidlemayian.com
Techpreneur . Hiker . Photographer . Tech Consultant . Developer . Winner
Google ADC Sub-Saharan Africa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130506/6f6c8b69/attachment-0001.html>
More information about the ckan-dev
mailing list