How to skip existing and/or same size files when using robocopy

前端 未结 2 499
我寻月下人不归
我寻月下人不归 2020-12-21 06:29

I have this code:

@echo on
set source=\"R:\\Contracts\\\"
set destination=\"R:\\Contracts\\Sites\"

::Not sure if this is needed
::It guarantees you have a c         


        
2条回答
  •  执笔经年
    2020-12-21 07:02

    Are you wanting to mirror source and destination?
    ROBOCOPY /MIR

    It might be worth looking at the /FFT switch as well

    You could of course use RAID 1, but I prefer having the discrete drives for flexibility.

    Having said that, I've found robocopy regularly re-copies files that don't need to be copied. Perhaps a service is tweaking the dates in the source so they appear later.

    I would like to know how to skip files of the same size and ignore dates since I know the files haven't changed if the sizes are identical for my media files.

提交回复
热议问题