Mirroring part of a Drupal site

The other day, we were all ready to delete a bunch of nodes from our Drupal site, when the owner of those pages requested a backup of them she could keep locally, just in case. Since there’s no easy way to do this within Drupal, we did it via Bash.

If you’ve got a better system for storing attached media and files, and not using the /sites/default/files path, then adding the regex –accept-regex may not be needed. But for us, since we had to get both /section, its child directories, and the associated files at /sites/default/files/section/, we needed something a little different.

©2022 Kyle Schmidt some rights reserved