Skip to content

Exports data and content from a DKAN Classic site that are not already exposed via API

License

Notifications You must be signed in to change notification settings

GetDKAN/dkan_export

Repository files navigation

DKAN Export

This module exports data and content from a DKAN Classic site that are not already exposed via API (eg data.json, etc...).

Installation

Requirements

Install Using Drush Make

$ cd sites/all/modules/contrib
$ git clone https://github.com/GetDKAN/dkan_export
$ drush make -y --no-core sites/all/modules/contrib/dkan_export/dkan_export.make
$ drush en dkan_export -y

Install Manually

  • Download the zip file from https://github.com/GetDKAN/dkan_export
  • Unzip the file in /sites/all/modules/contrib
  • Download all dependent contrib modules from the Requirements list above and add them to /sites/all/modules/contrib
  • Enable the module (for example, using drush: drush en dkan_export -y)

Usage

Export Data

Data exports are made through drush commands that will output the content as CSV unless specified otherwise.

Following the Data exports currently supported:

Users

Save all users currently available on on a DKAN Classic site and uuids of datasets that they authored.

$ drush dkan-export-users > dkanclassic-users.csv

Additional options:

  • --destination-file: Specify a destination file for the output, do not output the result to stdout.
  • --only-active: Only include active users, skip blocked users.
  • --skip-uuids: Do not include users authored datasets' uuids.

About

Exports data and content from a DKAN Classic site that are not already exposed via API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published