From 6c173745d11158970c099a3f957e467ff35dac4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Tue, 9 Aug 2022 11:41:55 -0400 Subject: [PATCH] Document syncing to test --- tools/deploying-drutopia-updates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/deploying-drutopia-updates.md b/tools/deploying-drutopia-updates.md index abe42b2..63c7864 100644 --- a/tools/deploying-drutopia-updates.md +++ b/tools/deploying-drutopia-updates.md @@ -79,7 +79,16 @@ ahoy artifacts ahoy deploy-site-force example_test ``` +## Sync live database to test +If you have new content on the live site that you want to see how your code works with, or if you have created entities on the test site that block the removal of configuration you changed your mind about, you will want to sync from live to test. + +```bash +ssh d-example-live +sync_to_test.sh +``` + +This handles making a paranoia dump of the test site in `~/backups`, dropping the test database to ensure no tables are left to clutter and interfere, skipping the content of cache tables, and bringing over user files (skipping cache files like the twig folder). ## Bonus: Keep Drutopia builds with similar available modules