Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Ray Seaman on
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
Backup all files
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.
Seems to be working...
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.
Just reverse the
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\
Almost there
Thanks for the restore command.
However cmd won't let me write "All", it wants a one character answer (either "F" or "D") unfortunately.