codalab / chagrade

4 stars 2 forks source link

Backup script #128

Closed ckcollab closed 4 years ago

ckcollab commented 4 years ago

@ mention of reviewers

@gibsonbailey

Resolves #139

A checklist for hand testing

Checklist

ckcollab commented 4 years ago

I added the commands...

./manage.py list_backups <search>
./manage.py download_backup <dump name from above search>
./bin/pg_restore.sh <dump name from download>

Also made everything private by default .. but all current File/ImageFields should be public anyway. Protects us in the future if someone makes an oversight, something we want to be private won't be public by accident (hopefully!)

EDIT: Merged in conflicts, looks like PublicStorage was already added with explicit S3 stuff, I think the way I did it should work OK locally? can you confirm @brendon-lind ?