File management and getting two directories in sync.
June 30, 2014 9:07 AM Subscribe
I'm in the process of cleaning up a hacked Wordpress install. How can I use the file list from a known-good directory as the basis for deleting all other files in the hacked one? e.g.: If a file exists in .../goodtheme/ leave it in .../badtheme. Otherwise, delete everything.
posted by piro to Technology (13 answers total) 4 users marked this as a favorite
Complication: the known-good directory doesn't work correctly, otherwise I'd just restore it completely. This is just one step of many in the cleanup.