25/10/2011

replicating directories with robocopy

my quick tip for the evening:

robocopy /w:1 /r:0 /mir

will just copy everything. Won't disturb modified dates or similar, but will just copy and DELETE AS ON THE SOURCE! So if you're trying to replicate directories across disks (for example because you've got, say 100GB of FLAC files on three external disks) then this is a good way to do it.

Adding a /maxage:30 will also set the maximum age, so if you've got a set of files you've touched recently, that will ignore everything else and only copy the new stuff.

No comments:

Post a Comment