خرید بک لینک

I have multiple drives, where I want to sync to another drive with robocopy. The following structure:

E:
 - ServerFolders
 -- A
 -- B

F:
 - ServerFolders
 -- C
 -- D

This is the command I used:

robocopy E: G: /e /zb /np /copy:DAT /dcopy:T /r:2 /w:5 /mir /log+:"C:UsersAdministratorDesktoplogsbackup_%date%.log" /XD "System Volume Information" "Recycler"
robocopy F: G: /e /zb /np /copy:DAT /dcopy:T /r:2 /w:5 /mir /log+:"C:UsersAdministratorDesktoplogsbackup_%date%.log" /XD "System Volume Information" "Recycler"

As you can see I make two calles and want preserve all timestamps. If something is deleted from E: or F: it should also get deleted on G:.

The result now is that if the backup finished, everything from E: isn't available anymore. I think that is because of /mir, which deletes folders that doesn't exist anymore. What I want is the following:

G:
 - ServerFolders
 -- A
 -- B
 -- C
 -- D

What do I have to change for that? If I specify the subfolders ServerFolders the same problem will occur. Additionally, I have to change the script every time a new folder is added.

- - , .

برچسب: نویسنده: استخدام کار تاريخ: جمعه 30 بهمن 1394 ساعت: 2:42

صفحه بندی