Solved Robocopy not copying all folders

cecile

New member
Local time
8:38 PM
Messages
2
Hi,

I want to use Robocopy to backup the data from my external hardrive D to a file called 'Backup' in a cluster storage W.
I only want to backup the modified and new files. In other words, I don't want to back up all the files in D every time I run Robocopy.

This is what I wrote by reading other posts on the forum:
title Backup personal files
robocopy D:\ W:\Backup /e /mir /np /tee /log+:backup_log.txt
pause

However, the script below does not back up all the files.
Any suggestion on how I can improve the robocopy script?

Thanks a lot for your help!
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
dell
OS
Windows 7 Entreprise 64 bits
Memory
16GB
ROBOCOPY is a FOLDER copier, not a FILE copier - the source and destination syntax arguments in ROBOCOPY must reference folder names.

So your example:
Code:
robocopy D:\ W:\Backup /e /mir /np /tee /log+:backup_log.txt

needs to be modified to:
Code:
robocopy D:\[B][COLOR="Red"]Folder_1[/COLOR][/B] W:\Backup /e /mir /np /tee /log+:backup_log.txt

where Folder_1 is the name of the folder on D: that requires backing up.

If you have more than one folder in D: that requires backing up, then you need to specify each folder, for example:
Code:
robocopy D:\[B][COLOR="Red"]Folder_1[/COLOR][/B] W:\Backup /e /mir /np /tee /log+:backup_log.txt
robocopy D:\[B][COLOR="Red"]Folder_2[/COLOR][/B] W:\Backup /e /mir /np /tee /log+:backup_log.txt
robocopy D:\[B][COLOR="Red"]Folder_3[/COLOR][/B] W:\Backup /e /mir /np /tee /log+:backup_log.txt
etc.
etc.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Fantastic, thank you very much! It is now working very well.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
dell
OS
Windows 7 Entreprise 64 bits
Memory
16GB
:thumbsup:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Back
Top