What does this Batch file do?
Posted: 26 Aug 2020 08:05
The following is a batch file I propose to run on my Windows 7 Pro platform with a view to backing up my data files, prior to installing Windows 10.
I can see that having chosen the correct drive letter where the backup will be stored it goes on to backup the data from the Desktop, Documents, Downloads, Favorites, Music, Pictures and Videos - but am at a loss to know what else it's going to do.
Would someone please be kind enough to advise me.
Thanks in advance.
I can see that having chosen the correct drive letter where the backup will be stored it goes on to backup the data from the Desktop, Documents, Downloads, Favorites, Music, Pictures and Videos - but am at a loss to know what else it's going to do.
Would someone please be kind enough to advise me.
Thanks in advance.
Code: Select all
REM *********************************************************
REM Backup User Profile
REM Replace everywhere below that has D:\ with the drive letter of the USB device.
REM If USB Drive is E:\ then replace D:\ with E:\
REM *********************************************************
ROBOCOPY "%SystemDrive%\Desktop" "D:\ProfileBackup\Desktop" /MIR /R:2 /W:5 /XJ /MT:32 /FFT /XF *.ost /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\Documents" "D:\ProfileBackup\Documents" /MIR /R:2 /W:5 /XJ /MT:32 /FFT /XF *.ost /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\Downloads" "D:\ProfileBackup\Downloads" /MIR /R:2 /W:5 /XJ /MT:32 /FFT /XF *.ost /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\Favorites" "D:\ProfileBackup\Favorites" /MIR /R:2 /W:5 /XJ /MT:32 /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\Music" "D:\ProfileBackup\Music" /MIR /R:2 /W:5 /XJ /MT:32 /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\Pictures" "D:\ProfileBackup\Pictures" /MIR /R:2 /W:5 /XJ /MT:32 /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\Videos" "D:\ProfileBackup\Videos"/MIR /R:2 /W:5 /XJ /MT:32 /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\LocalLow\Google\GoogleEarth" "D:\ProfileBackup\AppData\LocalLow\Google\GoogleEarth" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Local\Microsoft\Outlook" "D:\ProfileBackup\AppData\Local\Microsoft\Outlook" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Favorites" "D:\ProfileBackup\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Favorites" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore" "D:\ProfileBackup\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Roaming\Microsoft\Signatures" "D:\ProfileBackup\AppData\Roaming\Microsoft\Signatures" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Roaming\Microsoft\Stationery" "D:\ProfileBackup\AppData\Roaming\Microsoft\Stationery" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Roaming\Microsoft\Word\STARTUP" "D:\ProfileBackup\AppData\Roaming\Microsoft\Word\STARTUP" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Roaming\Microsoft\Excel\XLSTART" "D:\ProfileBackup\AppData\Roaming\Microsoft\Excel\XLSTART" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Roaming\Microsoft\Document Building Blocks" "D:\ProfileBackup\AppData\Roaming\Microsoft\Document Building Blocks" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Local\Google\Chrome\User Data\Default" "D:\ProfileBackup\AppData\Local\Google\Chrome\User Data\Default" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"
ROBOCOPY "%SystemDrive%\AppData\Roaming\FileZilla" "D:\ProfileBackup\AppData\Roaming\FileZilla" /MIR /R:2 /W:5 /XJ /FFT /LOG+:"D:\ProfileBackup\RoboCopyBackupLog.txt"