When a CKAN metadata export is the right copy
If you need a copy of your catalog for publication, for an archive, or for a research partner, the copy you want is usually the catalog itself, with user data left out. A CKAN metadata export produces records that describe the datasets and organizations a portal publishes, such as titles, descriptions, tags, licenses and resource links. It fits when the recipients need the catalog's content and have no use for the portal's accounts or activity. Typical cases include a public mirror, a closed archive when a project ends, and a data-sharing agreement with a university group. Start by writing down who receives the copy and which fields they may see, because that list drives every later check.
A full database dump is a different tool with different contents. The PostgreSQL database behind CKAN also holds user accounts, password hashes, API tokens, group memberships, activity streams and deleted records, so a dump carries the personal details of the people who use the portal along with the catalog. That makes a dump the right input for a backup plan and a poor starting point for a copy that leaves your control. The DataStore lives in its own PostgreSQL database and uploaded files sit in file storage, so confirm whether your export carries either one before you describe the copy to a partner.
Treat the export as a release step with a check you can repeat. Run it against a staging copy first, then compare the dataset count with the public listing and confirm whether private datasets are included. Search the output for email addresses, usernames and any extension field that stores contact details. Confirm the ckanapi version and the options of its dump datasets command against the CKAN release you run, because command behavior can change between releases. Store the output in a restricted location, record who receives it and when, and keep the check results with the copy so an auditor or partner can see how it was made.
Which export fits each purpose
This table compares four exports of a CKAN portal's catalog, showing what each is meant to contain, who should receive it and when it fits. Read each row as a starting point, since the exact contents depend on your installed CKAN and ckanapi versions, so confirm them in your own environment before you share any file. The main takeaway is that the public metadata export suits wide release, while the database dump and user export hold personal data and need restricted handling.
| Export | Meant to contain | Who receives it | When it fits |
|---|---|---|---|
| Public metadata export | Public dataset and organization metadata, produced with ckanapi dump datasets. Confirm exactly what each dump includes. | Anyone who reads or reuses the open catalog, including harvesters and researchers | Publishing or mirroring the open catalog without user accounts or private records |
| Archival copy | A point-in-time copy of the catalog kept for records, held by the archive custodian. Confirm which entities and fields it covers. | Records managers or an archive that must keep the catalog as it stood on a date | Retention or audit needs where the catalog must be preserved, with access limited to custodians |
| Full database dump | Everything in the main CKAN PostgreSQL database, including user accounts and other personal data. Confirm the database and dump tooling you use. | Operators restoring the portal, with access restricted to a small admin group | Disaster recovery and migration inside your own environments. Keep it out of public release. |
| User export for private use | Personal and account-level data for one user or a group of users, for their own use. Confirm which fields and activity it includes. | The individual account holder, through a request your privacy process approves | Subject access or portability requests, shared only with the requester over a controlled channel |
Which export fits who will receive the copy?
The path starts with one question: who will receive the copy. A public audience leads to a metadata-only dump, which must pass a private dataset check before release. An archive or internal recovery copy is a preservation copy, and its scope must be written down before it is made. A request for user data leads to a separate, restricted export with a named owner and a stated purpose. Each end state lists the controls to confirm before anything leaves the portal. Treat the branches as separate jobs, so a copy made for one audience is not reused for another.
Branches by recipient, each ending in the controls to confirm before release.
How to run a CKAN metadata export in order
This sequence turns a request for a public or archival copy of a portal's catalog into a checked export with a written record of what was left out. Each step ends with a check, so the team can show that the output holds catalog metadata only and that the decisions behind it were recorded before the export ran.
Record the purpose and recipient
The data owner or privacy lead writes a short statement covering why the export is needed, who will receive it, how the recipient may use it and who approved it. This comes first because later choices, such as whether private datasets are excluded and how the output is stored, depend on it. Check that the statement exists, names an approver, and identifies the recipient by organization and role. If the copy is archival rather than shared, state that explicitly, since the purpose determines what personal and operational details may appear in the output.
Confirm CKAN and ckanapi versions
The engineer records the CKAN version of the source portal and the ckanapi version installed on the machine that will run the command. Run
pip show ckanapifor the client version and note the CKAN version from the portal's administration or about information. Check that the CKAN version still receives patch releases under the project's CKAN release policy, and confirm in the client documentation that ckanapi supports that CKAN version. Keep both version numbers in the export record.Confirm dump options for your version
Before any run, the engineer runs
ckanapi dump datasets --helpon the installed client and reads the options that control which datasets are included, how private and deleted datasets are handled, where the output is written and in what format. Do not rely on options remembered from older documentation or from another portal. Check that you have written each option you will use, with its value, into the export record, and that the private dataset setting excludes what your stated purpose requires. If a needed option is missing, resolve that before the export runs.Run the export against a staging copy
The engineer runs the export against a staging copy of the portal, such as a restored or sandboxed instance, using only the options confirmed in the previous step. This lets the team find scope or output problems without touching the live site or the source data. Check that the command finishes without errors, that the number of datasets in the output matches the count the staging portal reports for the same scope, and that the output directory contains the files you expected. Record the command line and the date of the run in the export record.
Inspect output for accounts and secrets
A second person who did not run the export searches all output files for user data and credentials. Look for account names and IDs, personal email addresses in author, maintainer and contact fields, creator references, API tokens, and any datasets that were private or in draft when exported. Search free-text fields such as extras and resource descriptions as well, since personal details often appear there. Check that each search hit is removed, redacted or explained in writing, and that the reviewer's name and date are logged. Do not release the output until this review is signed off.
Store output with access controls
The engineer moves the approved output into storage that only the named recipient and the data owner can reach, and records where it is kept, who has access and how long the copy is retained under the purpose statement. Use the access controls of the storage platform, such as restricted buckets or folders bound to named groups, and avoid sending the files through general chat or open shared drives. Check that a permissions listing shows only the approved principals, and that a checksum of each file is recorded so a later copy can be verified as identical. Confirm the retention period with your records or privacy team.
Document what was excluded
The engineer completes the export record with what was included, what was left out and why. This covers private datasets, deleted datasets, user data fields and any redactions made during the review. The record is kept with the purpose statement so that the recipient or an auditor can see how the copy was made. Check that each exclusion traces to a rule in the purpose statement or a finding from the review, and that the data owner signs the final record. Anyone who later asks why a dataset is missing should be able to find the answer in this document.
Why a database dump carries user data
A CKAN database dump is a backup, and it holds more than the catalog. Besides dataset, organization and resource records, the main PostgreSQL database stores user accounts and the records linked to them, such as group memberships and permissions that control who can see private datasets. That makes the file sensitive personal data in its own right, even when every published dataset is open. Treat a dump as an internal recovery artifact with the same access rules as the live database, and never as a file to share with a public mirror or an outside partner. Before any export begins, decide whether the copy needs accounts at all. Confirm the exact contents of your CKAN version's schema with your own database administrator before you rely on that list.
The DataStore is a separate case that changes export scope. CKAN keeps structured data from resources in its own PostgreSQL database, and it provides a write user for loading data and a read-only user for the Data API. A dump of the main database therefore does not include the row-level tables that users loaded into the DataStore, and a DataStore dump does not include the catalog or the accounts. Any backup or export plan must name both databases explicitly. Confirm the DataStore database name, connection settings and credentials in your own configuration, because these differ between installations and are easy to miss in a scope review. The DataStore documentation describes how the two databases relate.
The practical result is a split in sensitivity. A public or archival copy of a portal needs dataset, organization and resource metadata, and it needs DataStore contents only when those contents are meant for publication. It does not need account records. A full database dump bundles both groups together, so a team that needs only a public copy should produce a metadata export and keep any dump under restricted access. Ask your team to list which databases and file stores each backup job covers, who can read those files, where copies are stored and how long they are kept. Those answers decide whether an export can leave your environment, and they should be written down before the first export runs.
Public copy or user export: two different handling rules
The public or archival copy is a catalog of dataset and organization metadata that the public, an archive operator or a reuse partner may read later. The output should hold only what the portal already publishes. Produce it with ckanapi dump datasets, which reads the catalog through the API. A full database dump would also carry account tables, so keep that method out of this path.
- Audience: Name the recipients before the first run, such as the public, an archive operator or a specific reuse partner.
- Minimum fields to check: Confirm that title, description, license, publishing organization and resource links are intended for release, and that contact fields are either blank or approved for publication.
- Access controls on the output: Confirm whether the dump includes private and draft datasets under the account that runs it, and exclude them if it does. Store the file where only the publishing team can write and the host serving it can read.
- Retention questions: Decide how long each snapshot is kept, who can ask for removal, and whether removed datasets are dropped from future copies or kept in archived ones.
- Sign-off: The organization's data owner approves the field list and dataset selection, and the portal owner or privacy lead approves the first run and every later change to the field list.
Before release, run the export on a staging portal and read a sample file field by field to confirm nothing outside the approved list appears.
The user export holds account and activity data for one purpose, such as answering an access request or meeting a legal hold. Its audience is a small named group, usually the privacy lead and the staff who work the request, and it is never a publishing artifact. The rules here cover handling and purpose, so each export should be justified, limited and deleted on schedule.
- Purpose and scope: Write the purpose, the requesting person and the policy or legal basis into the request before the export runs, and limit the export to what that purpose needs.
- Minimum fields to check: Review account fields such as names, email addresses, roles and last login, plus any activity records, and remove each one the stated purpose does not require.
- Access controls on the output: Keep the file in a restricted location with named access, encryption at rest and access logging, and keep it out of any location the portal or its public storage serves.
- Retention questions: Set a deletion date tied to the purpose, decide who confirms deletion, and check whether a record of the export itself must be kept after the file is removed.
- Sign-off: The privacy lead or data protection officer approves the purpose and field list before the run, and the portal owner records the approval and the export in the request log.
Check the request log against the file's location and deletion date at the end of each retention period, so the export never outlives its purpose.
Before any export runs, someone must decide which handling rule applies to each dataset and each output. This tab covers that decision, which happens before the steps in either tab above. Its audience is the portal owner, the privacy lead and the data owners who classify their organization's datasets.
- Classify each dataset: Mark each dataset as public, restricted or private before the run. Datasets with personal data in their metadata or resources need field removal before they appear in a public copy.
- Separate the two outputs: Give the public copy and the user export different jobs, storage locations and approvers, so one approval never covers both.
- Assign decision owners: Data owners decide dataset classification, the privacy lead decides on user exports, and the portal owner runs both jobs and keeps the schedule.
- Record each decision: Keep a short record of the classification or request, the approver, the date and the field list used, so a later review can reconstruct the run.
- Review after schema changes: Recheck the classification when custom metadata fields are added or changed, since a new contact or identifier field can move a dataset into a stricter rule.
Ask the privacy lead to confirm the classification of any dataset with a custom personal-data field before the first public run.
What can leak through a metadata export
Exporting a public copy of a CKAN catalog moves data out of the portal's trust boundary, so an export can expose more than the datasets readers see. The six risks below sit in different places: accounts, configuration, catalog visibility, URLs, free text and output storage. For each one, check the export output against a written rule and name an owner who signs off.
Account fields and emails
User records in CKAN hold fields such as email addresses, full names and account metadata. A dump that includes dataset creators, maintainers or contact emails can carry personal details into a public file. Check each exported field against a written list of what the public copy may contain, and confirm in your own portal which user-linked fields the dump command returns. The data protection or privacy officer should approve that list, and the portal administrator should run the check on a staging export before every release.
API tokens and credentials
Configuration files and environment settings often hold database passwords, keys for connected services and the site secret used for signing. The export should never read or copy those files, but harvest sources, extension settings and custom scripts sometimes store credentials inline. Search the export output and the scripts that produce it for token patterns and credential keys before anything is published. The platform engineer who owns the deployment should rotate any credential found and keep secrets in a dedicated secrets store outside the export pipeline.
Private and draft datasets
Private and draft datasets are visible to people with the right organization role, so they are easy to include by accident. A script run with an administrator's key can read far more than the public copy needs. Confirm that the export filters on the private flag and the draft state in your CKAN version, and check that the credential used has no more rights than the export requires. The catalog owner should sign off the filter, and the portal administrator should compare the export's record set against the public site after each run.
Resource URLs with secrets
Resource URLs sometimes point to storage links with signed query strings, tokens in the path or internal hosts that include credentials. These values travel into the export as ordinary text, and some remain usable after the file is downloaded. Scan every resource URL for query parameters, embedded credentials and private network addresses, then rewrite or remove the matches. The data steward for the publishing organization should review flagged links, because only they know whether a link is meant to be public.
Free-text personal data
Descriptions, notes, contact instructions and custom extras are free text, and publishers often paste names, phone numbers or case references into them. No field-level filter catches every personal detail, so the check is a human review backed by a pattern scan for email addresses and phone numbers. Treat free-text fields as the highest-review fields in the export. The data protection lead should set the review rule, and each organization's data steward should correct its own records before the export runs.
Output files with weak access
Dump files, logs and working copies often end up on a shared drive, a build server or an object bucket with broader read access than the portal itself. A file that is safe to publish can still expose unpublished drafts or personal data if an intermediate copy is left behind. Restrict the storage location and delete intermediate files after each run. The infrastructure owner should confirm the access settings, and the release manager should confirm that only the approved file is published.
Questions teams ask before exporting CKAN metadata
Can our own team export CKAN metadata without user data?
Yes, a team with CKAN administration skills can run a metadata export itself, provided it has sysadmin access and a clear rule for which fields count as user data. The core task is running ckanapi dump datasets against the portal and checking the output, which is manageable on a small portal with public datasets only. Effort rises when the team must decide what to exclude, prove that private datasets stay out, and document the result for an archive or public mirror. Before deciding, check three things:
- Whether someone has run ckanapi against a production-like instance and reviewed the output
- Whether a named owner can sign off on the field list and the excluded content
- Whether the export will repeat on a schedule, which turns a one-off task into an operations job
If any of these is missing, a fixed-scope engagement with written deliverables can cover the gap.
What drives the effort of exporting CKAN metadata?
Portal size, custom schemas, extensions, the number of private datasets and review requirements drive the effort most. A portal that uses the default dataset model is a different job from one with custom dataset fields, multiple organization schemas and DCAT profiles, because each custom field must be mapped and checked. Each factor adds work in a specific place:
- Portal size increases run time and the volume of output to review.
- Custom schemas and extensions require a field map for every value that does not exist in the default model.
- The number of private datasets sets how much filtering and testing is needed to keep them out of the output.
- Review requirements, such as sign-off from a data protection or records team, add a documented round of checks.
Ask the provider to break the effort into these four areas so you can see which one moves the total.
How long does a CKAN metadata export take?
Duration follows the same drivers as effort, and no general timeline replaces a scoped review of your portal. A small public portal on the default model usually moves faster than a multi-organization portal with custom fields, private datasets and a sign-off step, because review and rework grow with each factor. Expect the schedule to include a staging run, a review of sample output by your data owner, and time to correct issues before the final export. Ask the provider which phases the timeline covers and which phases depend on your team's response times. Fixed-scope engagements agree the timeline in writing before work starts, so you can compare it with your own estimate.
What does the export work need from our team?
The work needs staging access, a named data owner and a review of sample output before the full export runs. Each one removes a common source of delay:
- Staging access: a non-production copy of the portal, with an API token scoped to that environment, lets the export be tested without touching live data.
- A named data owner: one person who decides which fields count as user data and which datasets are public must be available for decisions during the work.
- Sample output review: the owner checks a subset of exported records for account details, private content and broken links before the full run.
Confirm early whether your security team must approve access to production data, because that approval can set the start date.
Does a public CKAN metadata export replace backups?
No. A public metadata export is a catalog copy and is not a backup. A dataset dump holds catalog records in a readable format, but it does not capture the main database as a whole, the DataStore database, FileStore uploads or the configuration files needed to rebuild the portal. Keep your scheduled backups running and store the export as a separate artifact with its own retention rule. Restore testing applies to backups, so confirm that your backup procedure still covers every component before you retire older copies. The export can help with archiving and public access, but it is not a recovery plan.
What should a written quote for a CKAN export include?
A written quote should tie the cost to a written scope, so ask for the scope before the price. Request a document that lists:
- The portal inputs assessed, including portal size, custom schemas, extensions and the number of private datasets
- The deliverables, such as the export files, the field map, the sample output review and the review notes
- The access required, including the staging environment and the named contacts on your side
- Which items are one-time work and which recur, such as a scheduled re-export
- The assumptions, exclusions and change process if the portal differs from the description
DeployOpen does not publish a price list. A quote follows from the written scope, so a clear scope is the fastest way to compare providers.
How should we handle user exports and private datasets?
Exclude private datasets and user data from any public export, and keep user exports for internal use under separate controls. A public export should include only datasets already published, with fields reviewed to remove account details, personal contact information and any content the owner has not cleared for release. A user export, such as an account list for an internal audit, is personal data and needs its own purpose, access list and retention rule. Document the field list and the filter used, and test that a private dataset does not appear in the output. Involve your privacy or data protection contact before deciding which fields are personal data.
Limits to confirm in your environment
Five checks sit between a ckanapi dump and a copy you can publish or archive. Each depends on a different part of your setup: your CKAN version, your extensions, your sign-in method, your upgrade habits, and your legal position, so the answers come from different people. Confirm each one in writing before the export runs.
Contents of the ckanapi dump
A ckanapi dump serializes datasets, resources and organizations through the action API, and the exact fields in each record depend on your CKAN version and the schema plugins you load. Run a small export against a staging copy and inspect a sample record for every dataset type you publish. Look for user emails, maintainer contacts and activity fields before anything leaves the portal. Ask your CKAN platform lead to confirm the field list for your running version.
Personal data in custom fields
Custom extensions can add dataset, organization or resource fields that store names, contact details or identifiers, and a default export may carry them into the copy. List every extension enabled in production, then read its schema and templates to find each added field. Mark every field that holds personal data and decide whether it is dropped, pseudonymized or kept with a documented reason. Confirm the list with the developers who wrote each extension and with your data protection officer.
External identity and SAML2 attributes
If sign-in goes through SAML2 single sign-on, user details can reach CKAN as attributes that populate profiles, organizations and roles. The ckanext-saml2auth extension supports this mapping on CKAN 2.10 and later, so check whether your portal runs it and which attributes it stores. Confirm which attributes are saved on the CKAN user record with your identity team, because those values could appear in any export that includes accounts.
ckanext-saml2auth repositoryRelease line under CKAN's policy
CKAN supports the latest patch of its current minor version and the previous minor version, and outdated patch releases lose support once a newer patch is out. Patch releases are meant to avoid breaking backwards compatibility and exclude schema changes and new features, but minor releases may include backwards-incompatible changes. Confirm the exact version you run with your platform team, then test your export tooling and extensions against that same version.
CKAN release policyLegal basis and retention
A public or archival copy needs a documented legal basis for each category of personal data it keeps, along with a retention period that states when the copy is deleted. These decisions sit with your legal counsel and data protection officer, and the export team applies them. Ask them whether any personal data may remain in the copy, who may access it, how long it is kept and how deletion is verified. Record their answers before the first export runs.
What to put in a written scope for this export
A written scope should settle three things before anyone runs an export: which datasets and fields leave the portal, who approves the rules that remove personal data, and what the staging run must show before a public copy is produced. Most of the one-time effort sits here. Scoping and review covers the organizations, dataset states and private datasets to exclude, plus a field-by-field decision on user-linked metadata such as maintainer_email, author_email and creator_user_id. The staging run is a complete export from a copy of the portal, so the team can check the output against the rules before anything is published. Output inspection, where reviewers open a sample of records and search the files for names and email addresses, and the documentation that records each rule and its owner complete the first-time work.
Some work recurs, and the scope should price it separately. Scheduled exports need a named owner, a rerun of the staging checks whenever the rules change, and a log of each run. Reviews are also needed after upgrades. CKAN 2.12.0 was released on August 26, 2026, and the CKAN release policy states that patch releases do not break backwards compatibility while minor releases may include backwards-incompatible changes. A move to a new minor version is therefore a reason to retest the export and any extension that adds fields, such as ckanext-dcat. The main cost drivers are the number of organizations and datasets in scope, the number of custom fields, the number of review rules, and whether resource files are included. Ask which of these the fixed scope covers and which ones trigger a change request.
When a quote arrives, check that it matches the written scope line by line. Ask for the inclusion and exclusion list with dataset states and organizations named, the full list of fields that will be removed, changed or kept, and the owner who signs off on each rule. Ask how the staging run is defined, what the output inspection samples and searches for, and what happens when inspection finds personal data, including who decides whether the export is held. Confirm the deliverables: the export files, the inspection record, the documentation and a runbook for repeat runs. For recurring work, ask what the retainer includes, what counts as a change request, and whether an upgrade review is covered. Finally, list what you must provide, such as staging access, catalog administrator contacts and a decision maker for the rules. Price and timing should follow from that list.
How DeployOpen scopes and delivers CKAN metadata exports
DeployOpen scopes each CKAN metadata export against the audience it serves, the archive or public copy it must produce, and the user fields that stay out of it. The work runs in infrastructure you control, with the export tooling, checks and handover documented for your own team.
How we scope
- The written scope names which datasets, organizations and groups are included in the public or archival copy.
- Scope lists every metadata field the export keeps and every field it drops, such as author contact emails.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- Export jobs run
ckanapi dump datasetsagainst the live catalog, so the output is limited to dataset metadata. - Checks compare record counts with the source and scan free-text fields for personal data.
- Any user export for private use follows a separate, access-controlled path agreed with your data protection owner.
How we hand over
- Handover includes the export configuration, the scheduled job definition and a run log template your team can reuse.
- Written documentation covers the field list, the command sequence, and where each output file is stored.
- Your team receives a walkthrough of the export and the checks, so it can rerun the job without us.
How we support
- Support covers rerunning exports after CKAN upgrades, where each export is retested against the new version.
- Ongoing support, upgrades and continuous testing are available as a retainer, scoped in writing.
- Ask for a quote that names the export audience, frequency and checks, so both sides can compare scope.

