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

David davisoski at gmail.com
Sat Oct 18 09:36:02 UTC 2014


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




More information about the ckan-dev mailing list