aboutsummaryrefslogtreecommitdiff
path: root/docs/deployment
diff options
context:
space:
mode:
authorMete Polat <metepolat2000@gmail.com>2019-07-15 16:50:28 +0200
committerStephen Finucane <stephen@that.guru>2019-07-19 19:16:10 +0100
commitb2d22fc59ba01a4d21fbc0e038739252aa7dfc3b (patch)
treee2a92dd461782df92c85362129c51503321b0d0a /docs/deployment
parentdfc41e9c2e915be31e02c5fbb3eefa5817860774 (diff)
downloadpatchwork-b2d22fc59ba01a4d21fbc0e038739252aa7dfc3b.tar
patchwork-b2d22fc59ba01a4d21fbc0e038739252aa7dfc3b.tar.gz
Add 'dumparchive' management command
Introduces a new management command which can export all patches in a project as one mbox file. Export of multiple projects is supported. Additionally allows to compress the output. Signed-off-by: Mete Polat <metepolat2000@gmail.com> Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'docs/deployment')
-rw-r--r--docs/deployment/management.rst24
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/deployment/management.rst b/docs/deployment/management.rst
index c50b7b6..9c57f19 100644
--- a/docs/deployment/management.rst
+++ b/docs/deployment/management.rst
@@ -46,6 +46,28 @@ request them and is helpful to expire unused users created by spambots. For
more information on integration of this script, refer to the :ref:`deployment
installation guide <deployment-cron>`.
+dumparchive
+~~~~~~~~~~~
+
+.. program:: manage.py dumparchive
+
+Export Patchwork projects as tarball of mbox files.
+
+.. code-block:: shell
+
+ ./manage.py dumparchive [-c | --compress] [PROJECT [PROJECT...]]
+
+This is mostly useful for exporting the patch dataset of a Patchwork project
+for use with other programs.
+
+.. option:: -c, --compress
+
+ compress generated archive.
+
+.. option:: PROJECT
+
+ list ID of project(s) to export. Export all projects if none specified.
+
parsearchive
~~~~~~~~~~~~
@@ -123,7 +145,7 @@ Update the tag (Ack/Review/Test) counts on existing patches.
.. code-block:: shell
- ./manage.py retag [<patch_id>...]
+ ./manage.py retag [<patch_id>...]
Patchwork extracts :ref:`tags <overview-tags>` from each patch it receives. By
default, three tags are extracted, but it's possible to change this on a