I'm upgrading from Drupal 4.7 to 5.1. I've backed up my database just fine, but backing up my Drupal Files has been very confusing. The main problem is I can't seem to find much information on the subject. I've seen the stuff provided in the handbook and didn't find it too helpful unfortunately.

I'm using a Windows Command Line Shell (Start -> Run -> "cmd".) All I need is are good, precise, step-by-step directions on how to make a backup of my existing Drupal directory.

Thanks in advance!

Comments

drupalnesia’s picture

on command prompt Windows run this command:
xcopy /E "c:\your drupal site\*.*" c:\backup_drupal

goto c:\backup_drupal and see if above command works.

Ray Seaman’s picture

Now its asking me (after I've put the command that you listed above in):

Does C:\backup_drupal specify a file name or directory name on the target (F=File, D=Directory)?

I'm assuming directory, correct?

Also, could you provide me a way to restore these files should my upgrade process not go so well.

Thanks for all your help thus far.

drupalnesia’s picture

Just reverse the command:
xcopy /E c:\backup_drupal\*.* "c:\your drupal site\"

answer All to replace all files with the backup files.

note: you can add a "\" after c:\backup_drupal so this command will receive this param as Directory rather than file, i.e: c:\backup_drupal\

Ray Seaman’s picture

Thanks for the restore command.

However cmd won't let me write "All", it wants a one character answer (either "F" or "D") unfortunately.