stbarnabas / django-icybackup

Back your Django database and media directory up to Amazon Glacier or a local file
25 stars 11 forks source link

PostGIS support #1

Closed daisylb closed 6 years ago

daisylb commented 11 years ago

Recieved via email:

Hi,

I'm eager to use icybackup but I ran into a problem and there isn't any place to report issues.

My database is Postgres but I'm using django.contrib.gis.db.backends.postgis.

Do you know if there will be any issues treating this like a normal Postgres database?

Thanks,
Shige Abe

daisylb commented 11 years ago

icybackup uses pg_dump -Fc to back up internally, which a quick Google indicates should be OK for PostGIS. I've added a line to make icybackup pick up the PostGIS backend as a regular Postgres DB, which you should be able to get by using pip install git+https://github.com/stbarnabas/django-icybackup.git. Let me know if this works for you.

There is also a test that Travis runs that does a full backup and restore using all three of the backends that icybackup supports; that should probably have some GeoDjango-specific stuff added to it before this issue is closed.

typeshige commented 11 years ago

Thank you! I'll give it a full test, but the backup part seems to be working!