Robocopy move contents of a system drive to a backup drive
How to use robocopy to move the contents of an old system drive to a backup drive.
- C:\ drive is the main system drive running Windows 7 with robocopy.
- D:\ is a large, internal drive for backups.
- F:\ drive is a system boot drive with an old installation of Windows XP.
This robocopy command example will move all the files from F:\ to a sub-folder on the D:\ drive. Note, the file move is permanent and you will not be able to boot off the old system drive anymore. The backup will be good enough only to preserve a copy of the files.
/MOVE - delete files from source after copying /E - Copy Subfolders, including Empty Subfolders. /B - backup mode (copy files even if access denied) /R:0 - do not attempt to retry a copy robocopy F:\ D:\Backups\OldSystemDrive /MOVE /E /B /R:0
Robocopy marks the folder as system and hidden, so we need to unset these after moving the files.
attrib -s -h D:\Backups\OldSystemDrive
Disclaimer: This content is provided as-is. The information may be incorrect.