From ea67640d4fbf8fcb558fa1ba193ee5ebf5cb5e14 Mon Sep 17 00:00:00 2001 From: JasonGrace2282 Date: Sat, 3 Aug 2024 13:51:16 -0400 Subject: [PATCH 1/2] Add rsync --- docs/source/production.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/source/production.rst b/docs/source/production.rst index 91c953bb..709ec507 100644 --- a/docs/source/production.rst +++ b/docs/source/production.rst @@ -10,6 +10,13 @@ Deploying Tin Backing Up Data --------------- +You can back up media with + +.. code-block:: bash + rsync -ah root@tin.csl.tjhsst.edu:/home/tin/tin/tin/media/ /path/to/backup/ + +You can then back up the database with + .. code-block:: bash python manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e admin -e auth.Permission > export_YYYY_MM_DD.json From 0ec7aec69da57e752e808cd9af03802097f0c2c6 Mon Sep 17 00:00:00 2001 From: JasonGrace2282 Date: Sat, 3 Aug 2024 13:53:52 -0400 Subject: [PATCH 2/2] Fix direction --- docs/source/production.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/production.rst b/docs/source/production.rst index 709ec507..117237bc 100644 --- a/docs/source/production.rst +++ b/docs/source/production.rst @@ -13,6 +13,7 @@ Backing Up Data You can back up media with .. code-block:: bash + rsync -ah root@tin.csl.tjhsst.edu:/home/tin/tin/tin/media/ /path/to/backup/ You can then back up the database with