does anyone know how to exclude .svn folders with Robocopy? I want to copy all folders but I want to prevent to copy the subversion folders that svn creates.
Any ideas on this?
Thanks in advance.
The most important switches in this command are the /XD which allows you to exclude folders, and /XF that you can use to exclude files. The other options are optional, but you should use these options that you should use in any standard copy process using Robocopy.
If you use the R and W switches with an argument of 0, then Robocopy should just skip errors and continue . . .
svn, also known as the working copy's administrative directory. The files in each administrative directory help Subversion recognize which files contain unpublished changes, and which files are out of date with respect to others' work.
Robocopy allows you to filter items not just by file but by directory name too. Using robocopy /xd , you can exclude certain directories matching a specific name. When copying multiple folders, use the /XD switch to exclude folders from the run.
The /xd ".svn"
folder exclusion should help in your case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With