Skip to content

.DS_Store, –delete-excluded, and RB at the CLI

randomlybolded.com is back up after a fatal error last night.

The problem

Immediate post-mortem casual analysis: PEBKAC.

Lesson learned. DO NOT USE UNTESTED CLI OPTIONS WITHOUT KNOWING EXACTLY WHAT THEY WILL DO.

In an attempt to remove legacy MacOS junk from my server (.DS_Store, eyes are squarely on you), I used rsync –delete-excluded. Which would have been terrific, except that my auto-update rsync command mirrors at the domain level, not within the various folders.

So rsync deleted every .DS_Store as well as my entire blog. No are-you-really-sure-you-want-to-do-that box, no oh-crap-⌘Z-to-undo-thank-God option, just plunge-over-the-cliff, search-and-destroy madness.

The solution

Backup database. Uninstall wordpress. Reinstall wordpress. Change wp-config.php $table_prefix (new) to $table_prefix (old). Problem solved.

All prompted by .DS_Store.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

Powered by WP Hashcash