ICT-Infer / timelog

Time sheet time tracking
ISC License
1 stars 0 forks source link

Restoring backup is difficult #41

Closed yarwelp closed 9 years ago

yarwelp commented 9 years ago

On a fresh install, doing loaddata of file exported by dumpdata gives errors including:

django.db.utils.IntegrityError: Problem installing fixture '/home/erikano/backup/timelog-0.3.2-18-g51f3212-dbdump-2015-07-02T145325+0000.json': Could not load auth.Group(pk=4): duplicate key value violates unique constraint "auth_group_name_key"
DETAIL:  Key (name)=(timelog_user) already exists.
yarwelp commented 9 years ago

Now that we're also encouraging pg_dump backups in addition to the Django JSON dumps, the data is sure to be safe. It's still a bit tricky for users, I think, but now it's not because of django-timelog. Users should consult someone knowledgeable about Django (preferably), or alternatively, get help from someone who knows what they're doing wrt. PostgreSQL. Closing.