Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Robocopy not copying all folders

10 Jan 2016   #1
cecile

Windows 7 Entreprise 64 bits
 
 
Robocopy not copying all folders

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 System SpecsSystem Spec
.
15 Jan 2016   #2
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

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:\Folder_1 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:\Folder_1 W:\Backup /e /mir /np /tee /log+:backup_log.txt
robocopy D:\Folder_2 W:\Backup /e /mir /np /tee /log+:backup_log.txt
robocopy D:\Folder_3 W:\Backup /e /mir /np /tee /log+:backup_log.txt
etc.
etc.
My System SpecsSystem Spec
18 Jan 2016   #3
cecile

Windows 7 Entreprise 64 bits
 
 

Fantastic, thank you very much! It is now working very well.
My System SpecsSystem Spec
.

18 Jan 2016   #4
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

My System SpecsSystem Spec
Reply

 Robocopy not copying all folders




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Issue with Robocopy only copying folders, not files, in Windows 7
Last week I used a robocopy tutorial on this site to create a backup script, and it was working fine. Today I tried to run this script, inputting new destination information but leaving everything else the same, and now it is copying all of the folders, but none of the files. It counts a total...
Backup and Restore
Robocopy not copying My Document files
Hi, I just started using Robocopy to backup my files to my JBOD recently and I noticed that it does not copy anything in My Document folder. Here is the result log for Robocopy regarding the backup. Even though it says that it copied 22831 files the destination folder says it has not been modified...
Backup and Restore
Robocopy /MOV command copying but not deleting from source directory
Hi All, I have one folder A and have another folder B in the same drive E: I need to move all the content from folder A which are more than 2 years old to folder B. Hence when I ran the robocopy it just copied and I lost all disk space in drive E. My question is even though I used /MOV...
General Discussion
Robocopy copying folders from the wrong place
I've set up a back up batch file to copy my Documents, Pictures, Music, and Videos folders from my computer to an external hard drive. However, while running the Documents backup, it seems to find, the pictures, music, and videos folders all inside the documents folders labelled "My Music", etc. ...
General Discussion
Robocopy - Copying Folders With Spaces in The Title.
Hey guys, This may sound like a really silly question, but I'm just getting to grips with using Robocopy. How do you copy folders with spaces in the title? E.g: T:\Admin Tools I keep getting an error. Any help would be great thanks.
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:16.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App