[ckan-dev] Empty CKAN Database
Nigel Babu
nigel.babu at okfn.org
Thu Nov 21 04:33:05 UTC 2013
I don't know of any out of the box way to do this.
You could perhaps try to save the details of the users from the user_list
API endpoint, empty and re-initialize the database, and then use those
details to re-create the users. Remember to request this as sysadmin so you
can get all the details of the users (especially email). You would still
need to have your users request password resets though.
Otherwise, just try to save the tables from postgresql with pg_dump. You
can specify table names for pg_dump. I'm not sure if that would cause other
problems though.
Nigel Babu
Developer | @nigelbabu <https://twitter.com/nigelbabu>
The Open Knowledge Foundation <http://okfn.org/>
Empowering through Open Knowledge
http://okfn.org/ | @okfn <http://twitter.com/OKFN> | OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/> | Newsletter<http://okfn.org/about/newsletter>
CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform
On 20 November 2013 13:32, Dimitrakakis Georgios <giorgis at ucnet.uoc.gr>wrote:
> Hi!
>
> I would like to know if there is a way through paster or something
> different to empty the CKAN database from all the groups, organizations and
> datasets (including the private ones) but leave the users intact.
>
> I do not want to empty and re-initialize the database! I just want to
> empty everything and leave the users so that the can start adding
> information from scratch.
>
> Best,
>
> G.
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20131121/c4253bf4/attachment-0003.html>
More information about the ckan-dev
mailing list