PPRuNe Forums - View Single Post - Windows7 Batch Files - stumped!
View Single Post
Old 21st April 2014 | 23:11
  #16 (permalink)  
Keef

Official PPRuNe Chaplain
 
Joined: Apr 2001
Posts: 3,498
Likes: 0
From: Witnesham, Suffolk
No, the /XJ is to exclude junction points. I don't want iTunes and a few others wearing out my SSD by constantly churning it, and since they insist on putting all their stuff down in the bowels of "Users", I've got sneakies in there to point them at their own spaces - mostly I: \Itunesjunk and the like.

Without the /XJ, the backup of C: \Users would copy all the garbage from I: \Itunesjunk, which gets backed up with Drive I anyway.

The error messages are mostly to do with me not being the owner of some of the files in the backup (for example System Volume Information) and therefore not allowed to delete them. I have to "take ownership" of them before I can delete.

xcopy didn't do that. I could click on a backup, shift-delete, and it would vanish. But then xcopy took to aborting part way through backing up a drive, and would move on to the next one: I couldn't find what was causing that (although I could identify the guilty folders). robocopy fixed that.

I've not had any errors at all copying - that part seems to work fine. Filenames seem not to cause problems, and even the umpty-level deep folders behave. I've got plenty that are 8 levels down - such as
Code:
C:\Users\Keith\AppData\Roaming\Microsoft\SystemCertificates\Request\Certificates
It's empty, of course.
Keef is offline  
Reply