I was transferring around 2TB of data (probably 20 million small files) from one server to the other, and of course we had a network outage when I was about 80% done. With this many small files it took a loooooong time to do this, so I don't want to start over. In order to not have to completely start over, I was thinking of doing something like this:
$filestoexclude = gci C:\path -recurse
Copy-item "\\server1\path" -Destination C:\path -recurse -exclude $filestoexclude
Just wondering if anyone has any critique or a better way to do this, thanks!