Robocopy is a command line file copy utility for Windows-based operating systems.

learn more… | top users | synonyms

2
votes
3answers
611 views

Best way to rsync a win2003 on linux

I'm currently dealing with a Windows 2003 (web) server, definitely not my cup of tea. The target is to download and keep synchronized some folders (~55GB) with a linux server. The windows server is ...
2
votes
1answer
2k views

Robocopy falsely marks files as newer

I have two NTFS formatted drives on different machines and I do a robocopy mirror between them like this: robocopy "D:\My Documents" "X:\Backup\My Documents" /MIR /V /NP /XD .* /XO /XA:SHTO /FAT /Z ...
0
votes
2answers
922 views

Robocopy - Change Modified Date

I'm copying a file over to another directory and was wondering if Robocopy can change the modified date to the date it copied the file over in the new directory. I haven't been successful playing with ...
1
vote
1answer
1k views

Rsync from CIFS mounted Windows shares is slow. Why is this? Are there alternatives for file copy with checksum support?

I have found that using Rsync to transfer files from CIFS mounted shares resident on a Widnows client is extremly slow. I have read a few threads here on SF, and several other forum posts on the web, ...
0
votes
1answer
2k views

How to sync web site files cross Windows Web Server 2008 R2 servers in realtime?

I have a web site generating files at runtime, this web site is deployed on 2 servers Operation system, Windows Web Server 2008 R2. I am looking for a manner to sync the changed and new files from ...
4
votes
1answer
32k views

How do I get robocopy to use a log file which includes spaces?

I'm trying the following command: robocopy "x:\dir" "y:\dir" /mir /z /tee /fft /nfl /ndl /eta /log:"x:\path to logs\12-15-11 01 file with spaces.txt" I'm getting this error: ERROR : Invalid ...
0
votes
1answer
516 views

Bulk file copy while limiting disk utilization?

I saw that Robocopy can limit network bandwidth in this answer How do you limit the bandwidth for a file copy? I have plenty of bandwidth on the LAN, but I don't want to saturate the disk on the ...
7
votes
3answers
4k views

How to properly migrate file server data?

We are in the process of decommissioning our old file server in a much-needed upgrade. It goes without saying that this needs to be as seamless as possible, as to affect the end-users as little as ...
4
votes
2answers
7k views

Completely silent robocopy

I'm trying to robocopy some files silently. Right now, I have robocopy putting everything into a log file, which is fine, but after it finished, Log File: C:\<logfiledestination> is printed. My ...
2
votes
1answer
771 views

Copying File into hidden folder

I'm attempting to copy a URL link for our companies library system onto all users workstation desktops. I've tried creating a shortcut via Group policy: User Configuration > Preferences > Windows ...
1
vote
1answer
607 views

Is it possible to use robocopy to sync host files across multiple Windows servers?

Would it be possible to use robocopy to copy the host file from one server to multiple servers (less than 10 total)? We have servers that rely on having identical host files and this would be ...
2
votes
5answers
6k views

How do I use robocopy to list all files over a certain size recursively?

I feel quite silly, since robocopy is server administration 101; but I seem to be having a problem listing files. I desire to list all files over 10MB in size in the directory and subdirectory. ...
2
votes
1answer
2k views

How to copy junction points on Windows XP?

I have tried several different tools in order to be able to copy junction points on Windows XP but none of them copied the junction point as junction point. All programs I have tried so far are ...
8
votes
1answer
8k views

Wildcard directory exclusions with robocopy — weird case

I need to get robocopy to exclude any file whose path contains a directory with a particular name. For example, "bar": c:\foo\bar\a.txt c:\bar\c.txt d:\baz\bar\flub\d.txt should be excluded, but ...
0
votes
2answers
357 views

Copy Random files using Robocopy

Can we use robocopy to copy random x number of files from one network share to another in Windows server 2008/ Windows server 2003?
0
votes
2answers
888 views

Robocopy website deployment script log file name truncated in AM

This is an IIS website deployment script I started to write. It moves files from directory A to directory B and creates a log file with the date/time as the file name. When it's run in the AM hours, ...
1
vote
2answers
3k views

Specifying date in robocopy destination folder

I would like to specify the date via CLI when running robocopy so that the destination folder includes the date. robocopy C:\folder\ Z:\folder_DATE /E /ZB /COPYALL /NP /V /LOG:F:\backup_log.txt ...
2
votes
2answers
5k views

Automate Windows Robocopy with internal changes monitor /MON:1 option

The /MON:1 option works just great and run directory scan if only changes happened. This is something that is not possible to do if robocpy is ran from windows scheduler each 10 min. Is there a way ...
14
votes
2answers
31k views

What switches can robocopy use to preserve file and directory times on the target?

After using robocopy to copy files to a new drive I realized that all the file and directory creation times and been reset to the time of copying. Are there some switches to make robocopy keep the ...
0
votes
1answer
1k views

Robocopy - include subdirectories of an excluded directory

I'm using Robocoy to transfer a directory and all it's contents. I use the following command as part of a batch file to copy the directories wile ignoring the images subdirectories. ROBOCOPY ...
3
votes
1answer
6k views

How to delete files older than 30 days with robocopy?

I have two folders synchronised with robocopy (src and mirror) and I try to not removing files in the mirror before 30 days. I tried with /MINAGE option to say "consider every files older than 30 ...
4
votes
4answers
8k views

Copy multiple folders to a single destination with robocopy

I'm looking for a solution to use robocopy to copy several folders from a directory onto a distant network share. I want to choose several folders out of a directory that contains hundreds of folders ...
0
votes
2answers
2k views

Copy large amount of small files using robocopy from USB disk to SATA disk

Would specifying the /MT option in robocopy give me better or worse performance, when copying a large amount of smaller files (~10-150kB) from an USB attached drive to an internal SATA drive? Should I ...
1
vote
1answer
541 views

robocopy - if a folder is excluded, but then removed from the source, it is removed from the destination also

I have a robocopy script that uses /xd to exclude some folders in a /MIR copy which works well unless I delete the folder from the source - in which case it does not exclude the folder, it includes it ...
2
votes
3answers
12k views

Robocopy failure with Windows Server 2008 Scheduled Task

So I have a batch script for robocopy. Running this from the command line does exactly what I want. robocopy "D:\SQL Backup" \\server1\Backup$\daily /mir /s /copyall ...
3
votes
3answers
4k views

Using ROBOCOPY to MOVE data around, not copy it

I have the following powershell script, which executes a few robocopy commands: ROBOCOPY.exe $q3 $q4 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD ROBOCOPY.exe $q2 $q3 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD ...
2
votes
3answers
3k views

good, free undelete for windows?

I was using robocopy and accidentally included the /MIR command which deletes everything on the destination drive which isnt in the source - face palm is findNtfs my best option? Ive had luck with ...
1
vote
2answers
9k views

Force ownership of folder structure without replacing other permissions - Windows Server 2008 R2 - takeown is erasing all other permissions

Logged on as local Administrator. Trying to put Administrator as owner of all files and folders on a drive. The drive contains an existing folder structure with securities/permissions/acls copied from ...
1
vote
5answers
3k views

Robocopy silently missing files

I'm using Robocopy to sync data from our server's hard disk to an external disk as a backup. It's a pretty simple solution but pretty much the best/easiest one we could come up with - we use two ...
0
votes
1answer
554 views

Checking the network connectivity stats for slow file transfer using Robocopy

I am trying to transfer a 6.5 GB file between two Windows Server 2003 machines on our network. Using Robocopy //sourceserver1 //destinationserver2 filname /z is making the file transfer crawl and ...
0
votes
1answer
3k views

How to use robocopy and zip destination folders?

All sources are on windows OS, and destination backup is on Unix system (we are using Samba). My source repository is similar to : -Repository --Folder1 ---Files --Folder2 ---Files etc... I would ...
3
votes
2answers
16k views

Scheduled Robocopy task fails with 0x10 error

I'm trying to schedule a file-sync between two dedicated servers on a LAN. The remote machine is running Windows Server 2003 and the local machine is running Windows Server 2008. I mounted the remote ...
2
votes
2answers
338 views

what is the best way to copy and replicate data

I have two HP Proliant DL160 G5s. One is currently in production (we'll call it NAS01) and the other (we'll call it NAS02) is built to the same config and almost ready to go. What I will be doing is ...
10
votes
11answers
54k views

Robocopy: How to move the content of a directory but KEEP the directory

Simple task: Move all the content of the directory c:\Users\files\Desktop\test 2 to c:\Users\files\Desktop\test 1 C:\admin\temp>robocopy "c:\Users\files\Desktop\test 2" ...
2
votes
1answer
2k views

Hudson copying files with Robocopy

I have hudson setup on a CI server, I'm using robocopy to copy files across to a webserver. I'm having some problems with exit codes. Robocopy reports so many different exit codes for success and ...
3
votes
3answers
2k views

Robocopy hiding folders on backup drives

I have a backup batch file that uses Robocopy to backup my files (note this example contains newlines that you should remove): robocopy "C:\" "G:\Default\RoboCopyBackup\C" /XF Pagefile.sys /XD ...
4
votes
1answer
8k views

RoboCopy fails with “the specified network name is no longer available”

We have a scheduled task that runs robocopy periodically to mirror a rather large folder structure from one server to another (thousands of folders, 100,000+ files, 50+ GB in size). There is a share ...
1
vote
4answers
3k views

is ROBOCOPY a good form of backup as a tool?

seeing how it does not do a write verify unless scripted (or is it needed?) is it a decent option to dump a few folders to another server? i am just worried about whether the data, after being copied, ...
2
votes
5answers
6k views

Alternative to robocopy /MIR

We run a number of web apps that store a lot of local data in small xml files. One part of our backup / recovery strategy is to produce a local mirror of the file system via a VPN to the hosting ...
16
votes
6answers
39k views

How to get robocopy running in powershell?

I'm trying to use robocopy inside powershell to mirror some directories on my home machines. Here's my script: param ($configFile) $config = Import-Csv $configFile $what = "/COPYALL /B /SEC/ /MIR" ...
1
vote
1answer
487 views

Overriding destination directory from ROBOCOPY Job file?

I am using Robocopy for backing up my project directories to an external disk, and it works like a charm. Except for one little issue: sometimes, I wish I could override the destination directory ...
2
votes
4answers
6k views

Robocopy really slow across LAN

DISCLAIMER: I'm a programmer, not an admin! I am setting up web apps in a new server cluster and copying files using xcopy or robocopy and UNC paths between servers on the same subnet is really slow. ...
0
votes
1answer
1k views

How do I know if robocopy skipped the file I am copying?

I am using a batch file to copy a database backup file using robocopy (on Windows 7/2008) and need to restore (with replace) the database only after the backup file is really changed (not skipped by ...
3
votes
3answers
4k views

RoboCopy errors on Windows Server 2008

I am getting bizarre error with RoboCopy in Server 2008. It will randomly hang with "The specified network name is no longer available." error. Once that happens, it will continue to fail on the ...
3
votes
3answers
966 views

Copying large amount of data between volumes on Windows 2008, fast method?

I need to copy data from/to very large volumes (2TB) on a Windows 2008 Server. Are there any tools I should consider using that maximizes throughput (hopefully with a resume-function)? I've always ...
3
votes
1answer
4k views

Get robocopy to copy completely silently

Is it possible to run robocopy in some sort of "completely silent" mode?
3
votes
5answers
15k views

Server 2008 robocopy access denied to user folders + /B error I don't understand

This is a two-parter. A) Trying to do this in server 2008, with command being run by domain admin: Robocopy \server\c$\users D:\backupfolder /MIR I get "Access Denied" on all files in the user ...
1
vote
3answers
2k views

RichCopy - Suppress Splash Screen and Run Quiet?

RichCopy looks to be a great tool with some features that RoboCopy lacks. I'm trying to use it to back up media on a Home Media Server project I'm working on so I need to be able to run it from ...
0
votes
3answers
939 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 ...
8
votes
2answers
11k views

Exclude only some files with the same name when copying using robocopy

I have a directory structure like this: folder1\ help.txt folder2\ help.txt folder3\ help.txt ... I want to copy the contents of folder1 using robocopy. For example: ...