0
votes
0answers
20 views

Robocopy Isn't Syncing the Read-only Attribute

I use Robocopy as a backup solution. One thing I noticed is that if a file gets backed up and then I decide to mark the original file as read-only, the next time that file gets backed up, the backup ...
1
vote
0answers
23 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
0
votes
0answers
21 views

Copying directories and files with the same stem using Robocopy

I'm using Robocopy as a TFS task in order to deploy some files. Basically, the behaviour that I want is as follows: I have a directory \\MyDir containing: MyFile1 MyFile2 MyFile3 TestFile1 MyDir1 ...
0
votes
1answer
101 views

“Copy but keep both files” but only for files with different timestamps

I'm trying to consolidate 5 very similar but slightly different tree structures into a single one but not lose any modified data. So, I need a solution that will: 1. Copy files that exist in the ...
0
votes
1answer
72 views

robocopy using parent folder name

I have a small batch file that uses robocopy to backup a folder. The intended action is for it to copy C:/users/public/ into D:/Backups/YYYY-MM-DDTHHMM/ At present, it copies the files into a folder, ...
1
vote
2answers
788 views

Batch file, skip a step if an error occurs

I'm trying to write a script that automates copying some files from two external locations using Robocopy. I want the script to skip a step if one of the locations is unavailable. I'm using the ...
1
vote
1answer
126 views

Need to create a robocopy in Powershell 1.0

My ultimate goal is to mirror a folder and its subdirectories with the restriction of only copying files with the extensions, sln, vcxproj, cs, cpp, hpp, c, and h. There are far too many subfolders ...
-1
votes
1answer
141 views

Robocopy misunderstanding of destination folder

I want to create a simple script to move the entire contents of a folder up in the parent directory, and insert it in the context menu. Here is the script. I'm trying to understand how robocopy ...
1
vote
4answers
3k views

ROBOCOPY Copying directory from remote computer: error 'the network path was not found'

I am trying to copy a folder from a remote computer using ROBOCOPY I'm using the following: NET USE \\192.168.10.90\IPC$ /u:server\[username] [password] ROBOCOPY \\192.168.10.90\home\lgr\ ...
1
vote
0answers
133 views

Robocopy; How to copying missing files to a different location from original copy?

I am using Robocopy to transfer around 1 tb worth of files from an external drive to a virtual Windows Server 2008 machine hosted on an ESXi 5.1 VMWare server using USB pass-through. I used the ...
1
vote
1answer
53 views

File copy software that first checks for errors and than copies only undamaged files? [closed]

I'm trying to copy files from a damaged HDD to a fine one (both connected via USB 3.0 under Windows 8.1) but I'm having a hard time since it's more than 1TB of data. I'm using robocopy with r:0 and ...
1
vote
3answers
403 views

Looking for a way to copy a file that does not lock the file being copied

I am aggregating together data that is being generated at a bunch of disparate sources, in a mixed environment of various versions of windows (xp/7) and one linux (centos). The data is available via ...
0
votes
1answer
134 views

Robocopy: copy files preserving folder structure but adding a subfolder

I need to copy a folder which contains subfolders with files to a shared folder on another machine. During that, the script should create a custom subfolder in each destination folder and place files ...
1
vote
0answers
207 views

Performance of RoboCopy when complex folder structure & files are to sync

I would require some recommendations from you about the challenge that I am currently facing. Background : There are Network Attached Storage in the US and India Office. All the data currently ...
0
votes
0answers
61 views

Copy folder structure on Windows except for one folder with files

I need to copy folder structure without files except for one sub-folder. That is I want to copy the folder structure without files plus only one of the sub-folder to be copied with its content. I can ...
1
vote
1answer
407 views

Hidden folder in Robocopy

I'm trying to backup a hard drive with two partitions on it to another drive with only one partition using Robocopy. I am running my commands in PowerShell. The source drive is a USB2.0 drive and the ...
0
votes
0answers
71 views

RoboCopy - Moving Data with Preservation

Robocopy D:\ Z:\c /E /Z /B /COPYALL /DCOPY:T /SECFIX /MIR /SEC /xd "RECYCLER" "$RECYCLE.BIN" "System Volume Information" "Thumbs.db" Some files I get the access denied error even when running as ...
0
votes
0answers
170 views

Robocopy (without /l flag) running for hours making log file huge, but not actually copying anything

Here's my command: Robocopy C: C:\C_root /FP /BYTES /TEE /S /E /COPYALL /DCOPY:T /MOVE /Z /ETA /XJ /R:2 /W:30 /XF pagefile.sys /XD /LOG:C:\robocopy.log. BTW, notice the /XD option above. ...
0
votes
2answers
243 views

Robocopy mirror erasing files from excluded directory

I'm using robocopy (v 5.1.10.1027) to transfer files to my dev server through a network share. I'm using the /MIR option to make sure extra files get removed in case I rename something. There are ...
0
votes
0answers
663 views

How to use Robocopy in true restartable mode

I am currently using the /Z flag in a Windows Robocopy command with the intention of creating a "restartable" copy job. However, when the copy command is re-executed after an interruption, the copy ...
0
votes
2answers
276 views

Copy all files, skip those already existing, and delete those in destination not in source

I imagine this could be done with Robocopy - I want to copy my music library from its folder on my PC to my mp3 player. I have ~5000 songs, and I'll probably run the copy every time I add an album. ...
0
votes
2answers
5k views

Robocopy: show skipped files and files with an error while copying

I'm using the following command for copying files while preserving timestamps: robocopy [source] [destination] /E /ZB /COPY:DAT /DCOPY:T /R:1 /W:5 /V /NFL /NDL /NS /NC /NP /log:"[log-path]" /XD ...
1
vote
0answers
2k views

ROBOCOPY /MIR (or /PURGE) follows and deletes target symlinks

Let's say we have a folder SOURCEDIR to be synchronized with TARGETDIR. The problem: if TARGETDIR contains directory symlinks, ROBOCOPY /MIR (or /PURGE) will follow the symlink, and delete every file ...
3
votes
2answers
12k views

How to copy only new files AND only those that are modified after a certain date?

I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUT, I also want to only copy source files that have been changed ...
2
votes
2answers
1k views

Why does Robocopy ignore the /copy flags?

Robocopy Copy Flags? I just recently made an answer here http://stackoverflow.com/a/15211788/891976 where I suggested using robocopy and its /copy flags, but for some as of yet unknown reason, the ...
0
votes
1answer
1k views

robocopy from remote server that requires private/public key authentication

I know that the robocopy command will only work with existing drives, not remote servers, so if I'd like to use the robocopy command to run periodic file backups from a remote server, I have to map ...
5
votes
2answers
5k views

How do I hide “Extra File” and “100%” lines from robocopy output?

I have a robocopy script to back up our Kiln repositories that runs nightly, which looks something like this: robocopy "$liveRepoLocation" "$cloneRepoLocation" /MIR /MT /W:3 /R:100 ...
3
votes
1answer
5k views

Robocopy, how to log only errors?

Will the options /nfl /ndl be enough and not exclude errors too?
1
vote
1answer
344 views

Robocopy prepends drive letter on filepaths even when drive is specified

robocopy /"C:\Users\john smith\Documents\Visual Studio 2010\Projects\project\checker\bin\Debug\/" /"C:\Users\john smith\project\Assemblies/" checker.dll When I run this through the command line it ...
4
votes
1answer
12k views

How to copy ONLY those files that are not in the destination?

Is it possible to use robocopy to copy only the files that do not exist in destination? robocopy has a /is (include same files) switch. What I am looking for is an /xs switch. If a file exists in ...
2
votes
1answer
156 views

Can I prompt a user to save a file using windows explorer?

I'm trying to build a windows batch file that will copy a folder and all its contents from the local user directory into an individually named folder on a shared server. The name of the folder on the ...
1
vote
1answer
4k views

Enable Robocopy logs

I have a robocopy job that is controlled by Windows Task Scheduler to run every 15 minutes to move files from one server to another. According to Windows Task Scheduler, the job is running fine. ...
0
votes
1answer
570 views

RoboCopy Log Files missing whitespace?

So I'm working on a script to use RoboCopy to copy a bunch of files, and log what it's copied. It works reasonably well, except for the logfiles. They tend to look like this: ...
0
votes
0answers
1k views

using robocopy to mirror folders as a scheduled task without users logged in

I have two servers, one local user with the same password and username. It will always be a one-way transfer serverA --> serverB. I created a scheduled task that runs (on serverB) robocopy ...
4
votes
2answers
7k views

What is the benefit of copy over xcopy on the command line?

I know that xcopy has more options however is there some benefit to using copy rather than xcopy?
2
votes
1answer
219 views

Robocopy on network as part of a pipeline

I have the following pipeline: [other vendor] sends files to my Windows filesystem, which are indexed starting with the next unused number (normally file.001) I move the files with RoboCopy to my ...
2
votes
2answers
347 views

Are junctions affected if the drive is formatted?

I was trying to relocate my user profiles, so that they are not affected by any problems occuring in the drive on which the operating system is stored. I've managed to move user profiles using ...
0
votes
1answer
3k views

Robocopy copying files from source to destination in backup mode and with file security permissions intact

I need to utilize robocopy to mirror files and folders from one shared location to another shared location, in restartable backup mode with security permissions. My current command is: robocopy ...
3
votes
4answers
927 views

Robocopy and fragmentation

While copying large number of files, it's quite often to use multiple threads with RoboCopy (/MT[:n] option). Can this cause fragmentation on the destination drive? Sometimes I use Beyond compare for ...
2
votes
0answers
1k views

command line remove read only flag on all subfolder entries or overwrite read only files with robocopy

I need one of two things to work: I use robocopy to copy all sub-files and sub-folders from one folder to another, and the destination contains older files + files not in the source, and I need the ...
1
vote
3answers
4k views

Mirror/Backup from SSH/SFTP to Windows

What I am trying to do is mirror a directory (recursively) from a server I can SSH/SFTP to, to a Windows machine. I want to do this as part of a script, so it can be automated. I only want to copy ...
1
vote
1answer
4k views

Why does Robocopy work once and then ignore all files the next time?

I used the following command: Robocopy c:\source c:\backup /MIR /XD .svn Then I deleted c:\backup and did it once again. This time it ignored all files and copied nothing. Why is that? How do I ...
-2
votes
3answers
416 views

Problems with Robocopy

How shall I put this... It's like: you can tell robocopy: "move the contents of this map to that map". But you can't say: "move that map to that map, no matter the contents"(to be content of that ...
2
votes
2answers
4k views

How to abort robocopy on first error

When using robocopy windows utility, what flags do I set so that robocopy aborts on the very first error it sees, similar to xcopy /dry command? I need to mirror two dirs, and on occasion some files ...
3
votes
7answers
3k views

Incremental/Differential Backup on Windows

What's the easiet way to perform an incremental/differential backup to a network share in Windows? Does a Robocopy/Xcopy solution work reasonably well (I need to the parameters!) or is there a good ...
19
votes
2answers
19k views

Linux equivalent to robocopy?

It's kind of funny, there are a lot of ways in which Linux command line tools are vastly superior to Windows ones, but one thing I have not found an equivalent to is robocopy. Robocopy is way more ...