I am trying to run robocopy to backup my whole harddrive

This what I have so far robocopy f: G:\Backup\f\ /E /R:2 /ZB /DCOPY:T /SL

The problem I have is that I seem to be geting into a loop where is is following the shortcuts and copy that at well and for some reason on the win7 build they are looping untill the path length breaks.

Has anybody got line that wordk or can tell what switch I have wrong?

link|improve this question
This belongs on superuser.com – Philippe Leybaert Sep 28 '09 at 18:34
feedback

migrated from stackoverflow.com Sep 29 '09 at 4:46

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 0 down vote accepted

Try this:

robocopy /E /R:1 /W:1 /COPYALL /ETA "F:\\" "G:\Backup\f\\"

If you want a mirror backup to process deletes, add the /MIR after ETA. If you are copying to a drive that isnt NTFS, you will need /FFT as well.

link|improve this answer
feedback

Remove the /SL switch. You don't need it.

I usually just use:

robocopy f: G:\Backup\f\ /MIR /R:2

link|improve this answer
isn't the /mir for miror which will delte files in the backup e.g. sysnic the files? – Pbearne Sep 28 '09 at 18:51
/SL:: copy symbolic links versus the target. I add this to try stop robocopy the target content I should what the shortcut – Pbearne Sep 28 '09 at 18:54
Yes, don't use /MIR unless you want a mirror copy. The /SL is your problem. It's following/backing up the symbolic links, which you don't want. – Gordon Bell Sep 28 '09 at 19:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.