robocopy to onedrive RRS feed

  • Question

  • I have attached a mapped network drive to Onedrive using webdav.  I want to copy a set of files via powershell using robocopy.  I want only to copy files that exist in the source but not in the destination.  I have this but it seems to keep copying everything.  Any help would be great.

    $Directory = "y:\2005*"
    Get-ChildItem $Directory | where {$_.Attributes -eq 'Directory'}| ForEach-Object {
    $source = $_.FullName
    $dest_folder = $_.Name
     robocopy $source  "z:\homedrive\$dest_folder" /e /xc /XN /xo /mt:2}


    • Moved by Bill_Stewart Monday, May 2, 2016 2:45 PM This is not OneDrive support forum
    Tuesday, March 8, 2016 6:22 PM

All replies

  • Why not just copy to local OneDrive. It will be faster.  RC is not completely compatible with WebDAV drives.



    Tuesday, March 8, 2016 6:36 PM
  • It is almost 500 GB.  i don't want to copy them to my PC first then up to my onedrive.  I want to build a script that will backup my files to onedrive and then only backup what has changed.  
    Tuesday, March 8, 2016 7:15 PM
  • The purpose of OneDrive is to keep a local cache.  If you do not have OneDrive installed then  you will have to copy the files one at a time and check each one against the WebDAV drive.


    Tuesday, March 8, 2016 7:21 PM