Let's say I was having a really rough day and I accidentally deleted the sites/all/modules directory in Drupal 7. Could I simply unzip my last back up of Drupal and copy that directory over to the server? Are there any other considerations or steps I should do and if this won't work, how should I go about fixing it? Thanks!

Running Drupal 7.50

  • 1
    While you are at it, might as well upgrade Drupal. As 7.52 fixed security vulnerabilities, so you should upgrade your Drupal to the latest version, which is 7.53 as of this writing. – No Sssweat Dec 29 '16 at 9:11
  • 1
    Will do, that's next on my agenda after I complete this long and complicated CRM upgrade. – Christia Dec 29 '16 at 9:30
  • Do you have version controlling like git or anything? If yes, then get your last comitted code through checking out previous head reference. Instance, git reset --hard HEAD-1 – Ashish Deynap Dec 29 '16 at 11:13

Assuming the backup files you have are the same as the ones that were deleted, that should be fine.

You'll probably want to flush the cache but other than that there shouldn't be any problems in theory.

  • Thank you Clive, I appreciate it. We'll see how it goes! – Christia Dec 29 '16 at 3:55
  • 1
    Good luck! And get some version control going ;) – Clive Dec 29 '16 at 3:55
  • 2
    I'm in the process if implementing and using GIT. Thanks! – Christia Dec 29 '16 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.