Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to copy files in use with robocopy?

I am having a batch file performing some backup operations. The backup operations look like this:

robocopy %source% %root%\%targetname% /MIR /R:0 /W:0 /NFL /NDL /NJS

Unfortunatly some files in use cannot be copied due to windows "protection". Is there the possiblity to copy files in use?

I am using windows 10. The backup included in windows 10 is not flexible enough, i cannot just copy some folders and so on.

like image 386
Steven Avatar asked Oct 19 '25 03:10

Steven


1 Answers

According to Wikipedia:

Robocopy does not copy open files. Any process may open files for exclusive read access by withholding the FILE_SHARE_READ flag during opening. Even Robocopy's Backup mode will not touch those files.

like image 54
Meshaal Avatar answered Oct 21 '25 00:10

Meshaal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!