Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [robocopy]

Robocopy (or "Robust File Copy") is a command-line directory replication command.

2
votes
1answer
55 views

xcopy invalid parameters - copying all files in folder

for /R "c:\" %f in ("*.pdf") do xcopy %f "%USERPROFILE%\all\text" /s /c /d /e /h /i /r /y This is the command I am using to copy all of the .pdf files on my computer into one folder. However, it does ...
0
votes
0answers
11 views

Mac OS File Sharing and Windows Client (Robocopy, File Attributes)

I've a MAC mini which I use as file server (shared folder over SMB) and I've a Windows 10 client. From the Windows 10 client I want to use the robocopy command to create a backup of all my files. The ...
0
votes
0answers
22 views

Windows 10 - Robocopy chokes on a directory called “Recovery”?

Trying to use Robocopy with the MIR switch to copy the entire contents of one disk (not networked) to a directory on another (also not networked). The source disk is E:. The target disk/directory ...
0
votes
1answer
11 views

Log ROBOCOPY Results only

I'm using ROBOCOPY to create a mirrored backup of a directory, to a removable SSD. The copy executes, but I'd like to keep a log of only the results, each time the script runs. Like the result below....
0
votes
0answers
29 views

Robocopy won't produce consistent results

I'm trying to mirror my files from one computer to another with robocopy. SRC is a network share DST is a local dirve On the computer running the program, but the same result is experienced if I run ...
0
votes
0answers
46 views

Recursively move deepest folder to top level(windows)

Friends computer had a virus which moved his external hard drive content into a folder structure approx 2000 levels deep. How I do recursively move folder from the deepest level to the top level
0
votes
0answers
29 views

Robocopy replaces root folder (sometimes?)

Something really strange is going on, and I cannot figure out why. I am running the following command on command prompt: robocopy D:\User\Pictures D:\Temp /MIR The first time I run it, it does what ...
0
votes
0answers
61 views

Purging files using Robocopy with filter applied

I'm trying to purge files that are older than x-days and that do not match certain file wildcard mask. Specifically, all files and directories older than 7 days and that do not end in underscore _ ...
0
votes
0answers
16 views

Windows robocopy: folders don't add up, but files do

The same question has been asked here and here with 0 replies. But this question really needs an answer, so I will post it again, hoping someone with enough knowledge sees it this time. "Copies" + "...
0
votes
1answer
24 views

Robocopy has erroneously moved important files; but why?

A few days ago I've used robocopy to copy all contents of an old hard-disk to a network volume, but today discovered robocopy had decided to also move all of my files in C:\Users, while my listed ...
0
votes
0answers
80 views

Batch File will run from command line, but not Task Scheduler

enter image description hereI have several computers, all running Windows 10 Pro x64. All were upgraded from Windows 7/8 via the Microsoft free upgrade offer of more than 1 year ago. One of these ...
0
votes
0answers
58 views

ROBOCOPY /XO fails to detect one newer file

I am using the XO option and usually it works fine. However, I am now faced with a situation where one file in a particular folder that is stubbornly not copied over, even though the source file's ...
0
votes
1answer
52 views

How to copy Folder directory including Root volume folder on Windows?

I would like to copy Recursively the full C:\Test Folder with all subdirectories including the Test folder and the folders permisions. I tried using the following commands but it only copies the files:...
0
votes
0answers
57 views

How can I make robocopy continue to try even though there is an error 2 (file not found)?

I have a script that runs each night for backup purposes. The just of the script is it will backup a DB, compress it to a 7zip file and then copy it to a network location I have set-up. My script ...
1
vote
1answer
147 views

incremental backup with robocopy not working with ms access files

I'm looking for incremental backup of one of my folders in my USB flash drive to my pc I'm using a ROBOCOPY command and has scheduled it on log on event through task scheduler Here's the code I'm ...
0
votes
0answers
22 views

robocopy, make destination folders and files all lowercase

I am using robocopy as part of a content pipeline (for app development). First i run it mirroring only the directory structure. Then i run it several times with /e (making use of /xf /xd etc). For ...
0
votes
1answer
57 views

Invoke-command still using my PC as middle man during robocopy?

Can someone look at my code and tell me why when using invoke-command, that my PC is still being used as a middle-man? I'm trying to get the destination computer to transfer directly and not use my ...
0
votes
1answer
47 views

power loss during files moving

I use Ctrl + X to cut and moving files to another DISK. 15 folers 312 files have corrupted when i check it. it's recommended to using COPY instead CUT/moving ? because when moving, file transfer ...
0
votes
1answer
66 views

Robocopy ignores files that exist in destination subfolders

I am currently using Robocopy to maintain files in two locations. I want to be able to have a subfolder within the destination folder for "completed" files. My problem is while Robocopy continues to ...
1
vote
1answer
39 views

Robocopy /fat option

I'm trying to copy server files to sharepoint and there are a lot of files and folders that have full sentences as names and as such, when I try to copy these files into the sync folder on the server ...
0
votes
0answers
34 views

Windows Fileserver / Domain Migration: remove NTFS Permissions first?

I'm working on a fileserver-migration. Currently I have 1 TB of data in "Domain A". Those folders and files should have a complex yet mostly unknown permissions hierarchy implemented by my predecessor....
0
votes
1answer
48 views

How to simply keep a file in open status without help of program in C language/etc.. by using windows bare basic features?

Why robocopy still copy an open file, opened by txt editor in windows Further to above question, how could it be the simplest way to keep an file opened in a bare windows env like server 2016 ...
4
votes
3answers
273 views

Why robocopy still copy an open file, opened by txt editor in windows

From wikipedia, it is told that robocopy will skip copying files in open status. However, when it is under test for robocopy behaviour, the robocopy still copy the opened file by the most simple text ...
0
votes
2answers
92 views

How to duplicate files onto an external backup drive, but first moving existing files to match the source folder tree and get a report?

If the title didn't make much sense then, let me provide more details. My problem is that there are some identical files on both drives already, but they reside in different directories. Let me show ...
0
votes
0answers
478 views

Robocopy exclude directories with wildcard

I am trying to backup critical folders and their contents on a daily basis so that, should my data drive fail, I have a backup of the important project files but my working data drive is much larger ...
0
votes
0answers
171 views

How to get ROBOCOPY to throw an error when there's denied access

I am using ROBOCOPY to copy some files from folder A to folder B. I have purposefully made folder B inaccessible using NTFS permission to throw an error so that it can take a different action when ...
0
votes
1answer
249 views

ROBOCOPY source destination *.* /maxage: <20171231> [closed]

I need to copy files from one folder to another, I want to copy files younger than Dec 31st 2017: ROBOCOPY source destination . /maxage: <20171231>
0
votes
0answers
331 views

External hard drive (USB 3.0) disconnects after half an hour when robocopy is copying large files

I'm constantly facing the same issue, that I'm not able to successfully copy files from one internal drive to an external drive. I'm using robocopy with this command robocopy D:\ F:\ /e /zb /np /copy:...
0
votes
2answers
380 views

How to Robocopy only modified files and exclude new files

How can I Robocopy only modified files and exclude newly created files in source folder. I'm using windows 7
1
vote
1answer
696 views

How to copy user's appdata folder using robocopy?

I'm trying to backup my current user's AppData folder. Because the folder is quite big, I wanted to use robocopy. However, robocopy is having mess with symbolics links. Especially, in the user ...
0
votes
0answers
36 views

After making a backup using synctoy. robocopy, etc. Is there a way to copy only new/changed files and folders to a different location?

After making a backup using synctoy, robocopy, or other program. Is there a way to copy only new/changed files and folders to a different location? Example: C:\Users\Jake File 1 File 2 Copied to ...
0
votes
1answer
221 views

Using OneDrive as a backup for my Pictures library

This sounds like an easy-enough question, and luckily I found an article on it here, which I followed. I have mapped my OneDrive as a Network Location on my PC, and it works perfectly (though I had ...
0
votes
1answer
271 views

Windows: copy files and change extension without duplicates

I have a directory that has image files without extension. Let us say it to be D:\initial\. Now I want to copy those files over to D:\final\ directory and change the extension to .jpg for each file. ...
1
vote
2answers
1k views

Robocopy /S creates empty folders

Okay - I'm trying to stop robocopy from creating empty folders when it is copying. The SOURCE folders are not empty; but they also have no new files to copy. Yet robocopy creates them at the ...
1
vote
1answer
242 views

Copy subfolders and their content up one level?

Right now I have the following structure Folder 1\ -Apr2007\folder 1 \folder 2 \folder 3 -May 2007\folder 23 \folder 24 \folder 25 ...
1
vote
1answer
698 views

ROBOCOPY /XN: newer in source or destination?

Does ROBOCOPY /XN exclude files that are newer in the SOURCE or files that are newer in the destination? I checked Microsoft official documentation but it is totally ambiguous.
0
votes
0answers
408 views

robocopy to Drive File Stream Fails in powershell but not at command line Error 5

When I run the robocopy at an admin command prompt it runs successfully. C:\Users\StoreMgr>robocopy "C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept" "G:\My Drive\...
-2
votes
1answer
137 views

I made too many nested folders

I made way to many nested folders, around 20 thousand, I think. I can't delete them, even with 7-Zip, as some people recomended. I tried ROBOCOPY, mirroring an empty folder, but it fails, because ...
1
vote
1answer
420 views

How to backup file from server and keep last n versions?

I am trying to create a batch script to backup an Access Db from a NAS Server to another server and keep the last "n" versions of that file (n is fixed inside the script), this script is going to to ...
0
votes
0answers
376 views

Robocopy all folders in a directory that starts with “Version”

We have a network share with many subdirectories depending on what project files you need to access. In a specific directory, our build process is creating new folders that start with "Version " ...
0
votes
1answer
68 views

Copying the directory tree and file contents of only specific folders

I'm trying to archive a large amount of files from only subfolders with a specific name. I'd also like to maintain the original folder structure in order to keep it simple for my team to access the ...
1
vote
1answer
202 views

Folder not visible in Explorer or from cmd after RoboCopy

I use RoboCopy to do a basic backup of one of my (non-OS) HDD's: robocopy D:\ X:\Backup\D /MIR /XD D:\ExcludeMe The destination directory (X:\Backup\D) had not been created before execution. After ...
0
votes
1answer
89 views

use a different directory as copy target

hi I would like robocopy to output the actual copied files to a different directory than the one that it uses to determine the files to copy. So i have 3 directories: source reference output/diff-...
1
vote
1answer
589 views

Robocopy will not copy files involving any external drives

I am attempting to back up data onto some external hard drives as a part of my job, the data sets can be over 100GB in size with specific file structure so using robocopy is a must. When I run this ...
2
votes
1answer
1k views

Not able to access path of mobile phone in cmd

I'm kind of new at CMD so please go easy on me. I am trying to copy files from my mobile phone via robocopy in CMD as the regular copy/paste doesn't support some of the features of robocopy I'd like ...
1
vote
1answer
1k views

Using Robocopy to move files to Null

I'm trying to move files using robocopy to NULL in a powershell script, in effect deleting them. Normally I'd use get-childitem but I'm dealing with long file name paths and it fails on those, but ...
0
votes
1answer
292 views

Robocopy: “The system cannot find the path specified.” for cell phone micro SD card

I am trying to expand the memory in my Samsung Galaxy S8 by copying over the current data in my micro SD card to a larger one. Unfortunately, I don't have a micro SD slot on my computer, so I want to ...
1
vote
1answer
303 views

Robocopy Commands ad switches [closed]

On Robocopy commands/switches we get requests to move a huge number of files and most of them have dates that were created. Most of the files they want to remove are OLD file - from 2/xx/16 to 5/xx/...
0
votes
0answers
207 views

Is it possible to perform a complete backup of the Users folder with Robocopy?

This is a more specific version of a broader question I posted a few weeks ago, I have my Users folder - B:\Users - on a separate drive to my Windows 7 system. I want to copy the contents of this ...
2
votes
0answers
81 views

Working with source files while Robocopy is running

I need to make a backup of my entire Users folder from within Windows, but I also really need to be able to use my computer normally. I'm planning to use Robocopy for this purpose, and want to clarify ...