django-archive icon indicating copy to clipboard operation
django-archive copied to clipboard

Ability to restore archives to the database

Open nathan-osman opened this issue 10 years ago • 4 comments

Currently, restoring an archive to the database is a manual process. This involves using loaddata on the JSON file and copying the uploaded files back to the appropriate location. This is bad because:

  • It's slow
  • It doesn't take alternative storage backends into account

I'm not sure what the "un-archive" command should be called.

nathan-osman avatar Dec 18 '14 01:12 nathan-osman

I'm really interested in implementing this, do you have already wrote something or can I start from zero?

I think that unarchive should be fine as name.

BTW great project.

gipi avatar Sep 29 '15 06:09 gipi

Thanks for the feedback. I'm not currently working on this, so if you'd like to start, that's fine. I thought about the name a bit more and perhaps "restore" would be a better name for the command than "unarchive". (The original intent of django-archive was backup and the opposite of "backup" is "restore".)

nathan-osman avatar Sep 29 '15 17:09 nathan-osman

"restore", yes.

matsaman avatar Mar 20 '18 15:03 matsaman

Turns out I had this implemented and waiting in a fork, please take a look at PR #9 when you get the opportunity.

Adnn avatar Jul 31 '19 09:07 Adnn