Robocopy help..

Soldato
Joined
5 Jun 2005
Posts
20,890
Location
Southampton
I moved to a SSD and can no longer store my music & video on the 'C' Drive and have moved it to 'D' i have updated my script but it is not making any changes...

I have checked the paths and even cut&paste the address to make sure

robocopy /e D:\Music p:\Jimmy\Music /MIR /R:50
robocopy /e C:\Users\Jimmy\pictures p:\Jimmy\Pictures /MIR /R:50
robocopy /e C:\Users\Jimmy\Utilities p:\Utilities /MIR /R:50
robocopy /e D:\Videos P:\Jimmy\Videos /MIR /R:50
robocopy /e C:\Users\Jimmy\documents p:\Jimmy\documents /MIR /R:50


i have also tried running the script from the 'D' drive and changing the paths...

i'm stumped!
 
you only need quotes if there are spaces. and /e is included by default when using /MIR so no need for that.

put a

pause

at the end of the script so you can see what it says.
 
I just use

robocopy /e "c:\source folder" "d:\destination folder"

you are using 7 or Vista right?

By default, robocopy isn't on XP..
 
Sorry if it's a silly question (in fairness your post isn't very clear about exactly what you're trying to achieve), but are there actually any new/changed files in D:\Videos and D:\Music which don't already exist on P: ?
 
OK sorry, everything is updating apart from the 'D' locations (music and video) i am using win7, it has worked fine for months, but now the vid & music are on 'D' the script just skips and does not add or change anything
 
What I'm getting at is: have you added any new files to D:\Music or D:\Videos since you changed the folder location, which didn't previously also exist in the mirror on P: (in the same relative path) ? In other words, are you sure there's actually any *new or changed data* that isn't being mirrored?

I'm sorry if it seems obvious, but if you don't provide the basic information it's going to be hard to work out what's going on...
 
sorry if i am failing to make myself clear guys....

1. OLD SCRIPT

robocopy /e C:\Users\Jimmy\music p:\Jimmy\Music /MIR /R:50
robocopy /e C:\Users\Jimmy\pictures p:\Jimmy\Pictures /MIR /R:50
robocopy /e C:\Users\Jimmy\Utilities p:\Utilities /MIR /R:50
robocopy /e C:\Users\Jimmy\videos P:\Jimmy\Videos /MIR /R:50
robocopy /e C:\Users\Jimmy\documents p:\Jimmy\documents /MIR /R:50

got a SSD and had to move Music & Video to a data drive 'D'

new script...

robocopy /e D:\Music p:\Jimmy\Music /MIR /R:50
robocopy /e C:\Users\Jimmy\pictures p:\Jimmy\Pictures /MIR /R:50
robocopy /e C:\Users\Jimmy\Utilities p:\Utilities /MIR /R:50
robocopy /e D:\Videos P:\Jimmy\Videos /MIR /R:50
robocopy /e C:\Users\Jimmy\documents p:\Jimmy\documents /MIR /R:50

no changes being made on the video and music entries... every other line is working
 
Yes, I understand the script... this is like pulling teeth. :(

What files have you added to the D:\Videos and D:\Music folders, since you moved the folders to the D drive? What changes have you made to the *data* (not the script)? If there's nothing to mirror, then nothing will happen...

When you say "the script just skips", what *exactly* do you mean... does it show something like this:

Code:
               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0         0         0
   Files :        45         0        45         0         0         0
   Bytes :   13.65 m         0   13.65 m         0         0         0
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00

Or something else, or nothing at all, what?
 
If there is no new data in D:\ then it wont copy anything to P:\

It doesn't matter if you changed paths from the source location. To test it is working properly drop some new files in D:\Music and see if they get coppied to P:\
 
If there is no new data in D:\ then it wont copy anything to P:\
dear god, thank you, I thought I was cracking up... :D

@JimLad - just to clarify further (I'm not always the best at expressing myself), the /MIR switch only copies new and changed data which doesn't already exist in the destination. If it doesn't find anything which fits those criteria, it won't do anything.

You probably already knew this, but if there *is* new/changed data, at least we can eliminate one possible cause.
 
OK....

yes there is lots of new data and changes, at least 30 new files and at least 120 data corrections and about 3.2 gig of data off the top of my head.

the script is set to mirror, but it is not changing or writing or mirroring anything in regards to the 'D' locations. the 'C' locations work as normal as expected mirroring my changes.

When you say "the script just skips", what *exactly* do you mean... does it show something like this:

when i say skips i just mean it skips any changes, ignores the hole command in regards to the 'D' commands
 
Last edited:
Back
Top Bottom