Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

3 Answers 3

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.

share|improve this answer

The right switch is /XJ (exclude junction) to only copy and unfollow symlinks.

share|improve this answer

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

I usually just use:

robocopy f: G:\Backup\f\ /MIR /R:2
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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