Skip to content

Instantly share code, notes, and snippets.

@63phc
Last active October 13, 2017 11:46
Show Gist options
  • Save 63phc/07b5bc8fb49b69de8532083e899796a5 to your computer and use it in GitHub Desktop.
Save 63phc/07b5bc8fb49b69de8532083e899796a5 to your computer and use it in GitHub Desktop.
python3 manage.py dumpdata -e=contenttypes -e=auth.permission> <file>.json
:
dumpdata --exclude auth.permission --exclude contenttypes --exclude admin.LogEntry --indent 2 > db.json
scp root@ip:pathtofileonserver pathfiledowload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment