Last active
June 2, 2016 06:43
-
-
Save dpwiz/70b50c5a37d1aa740335 to your computer and use it in GitHub Desktop.
dump django data for later loading into empty db (e.g. server migration)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./manage.py dumpdata --exclude=auth.permission --exclude=contenttypes --exclude sessions --exclude admin --natural-foreign --indent=2 | xz -9 > dump-`date +%Y%m%d`.json.xz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment