Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getdkan/dkan_export
Exports data and content from a DKAN Classic site that are not already exposed via API
https://github.com/getdkan/dkan_export
dkan drupal drupal-7 drush
Last synced: about 1 month ago
JSON representation
Exports data and content from a DKAN Classic site that are not already exposed via API
- Host: GitHub
- URL: https://github.com/getdkan/dkan_export
- Owner: GetDKAN
- License: gpl-2.0
- Created: 2020-08-18T14:27:39.000Z (over 4 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2021-03-23T17:53:44.000Z (almost 4 years ago)
- Last Synced: 2024-11-05T19:47:36.678Z (3 months ago)
- Topics: dkan, drupal, drupal-7, drush
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* Full installation of core DKAN.
* Dependencies:
* [loft_data_grids](https://www.drupal.org/project/loft_data_grids)## 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.