From c412d9af7e4121f6979758312c9426fa6893e9b7 Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Tue, 12 Jan 2021 15:47:58 +0100 Subject: Fixed #32291 -- Added fixtures compression support to dumpdata. --- docs/ref/django-admin.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index b2c885431f..c916ff96c8 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -364,6 +364,17 @@ standard output. When this option is set and ``--verbosity`` is greater than 0 (the default), a progress bar is shown in the terminal. +Fixtures compression +~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 3.2 + +The output file can be compressed with one of the ``bz2``, ``gz``, ``lzma``, or +``xz`` formats by ending the filename with the corresponding extension. +For example, to output the data as a compressed JSON file:: + + django-admin dumpdata -o mydata.json.gz + ``flush`` --------- -- cgit v1.3