[ckan-dev] Backup problems using paster db dump with spatial extension

David Read david.read at hackneyworkshop.com
Tue Oct 21 11:48:54 UTC 2014


David,

To run paster commands without having to activate the venv, you can
just specify the path. i.e. use:
   /usr/lib/ckan/default/bin/paster
instead of:
   paster

David



On 18 October 2014 10:36, David <davisoski at gmail.com> wrote:
> Hi.
>
> Just one more thing.
>
> After doing all this steps, everything works ok.  I would like to make this
> automatic for backup.
>
> My problem is:
> To run this commands:
>
> paster db clean -c /etc/ckan/default/production.ini
>
> virtual enviroment must be activated;
>
> . /usr/lib/ckan/default/bin/activate
>
>
> Is there a way to run paster command from command line?
>
> root at server: SOMETHING MISSING HERE sudo -u postgres
> /usr/lib/ckan/default/bin/paster db dump
> --config=/etc/ckan/default/production.ini my_ckan_database_date.pg_dump
>
>
> Thanks
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev



More information about the ckan-dev mailing list