-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrobocopy.txt
17 lines (11 loc) · 855 Bytes
/
robocopy.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## Best Practise for robocopy
# /z ensures Robocopy can resume the transfer of a large file in mid-file instead of restarting
robocopy \\netshare\h$ Y:\Portable /mir /sec /z /r:10 /w:10 /log:D:\Portable_Transfer.log
# Without /zb can speed up transfer
robocopy \\netshare\f$\ISO D:\ISO /mir /r:10 /w:10 /eta /tee /unilog:D:\ISO.log
# Exclude directories
robocopy D:\ G:\DriveD\ /mir /r:10 /w:10 /eta /tee /unilog:%temp%\robocopy-%random%.log /xd "System Volume Information" "$RECYCLE.BIN"
# Exclude directories and files
robocopy D:\ G:\DriveD\ /mir /r:10 /w:10 /eta /tee /unilog:%temp%\robocopy-%random%.log /xd "System Volume Information" "$RECYCLE.BIN" /xf ".DS_Store"
# Working version
robocopy \\192.168.2.12\homes\ D:\homes\ /mir /r:10 /w:10 /eta /tee /log:C:\trans.log /xd "System Volume Information" "$RECYCLE.BIN" "@eaDir" /xf ".DS_Store"