Tech Problem Aggregator

Solved: Robocopy in Windows Vista

Q: Solved: Robocopy in Windows Vista

hi friends.
here is my batch file to copy all data from C:\Data to N:\Full Backup\DD Directory using robocopy.exe in windows Vista

Code:
robocopy "C:\DATA" "N:\Full Backup\DD" /S /B /256 /R:10 /W:10
pause
and the directory depth is really really really long but i guess the /256 should be able to handle it. I don't know why it's not working.
Directory Structure: C:\DATA\office secretary\Office Board\General Assembly of our Office\19th FIN Jepaul General Assembly & Board Metting 2009 September\18th General Assembly & Board Mtd 21& 22 August 2009
FileName: GA 18 - Apolgoy Letter to sir for. shawai for his signature- Sept. 2.doc
C
This is the output when i run the batch file
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------

Started : Fri Sep 17 22:22:50 2010

Source : C:\DATA\
Dest : N:\Full Backup\DD\

Files : *.*

Options : *.* /256 /S /COPYAT /B /R:10 /W:10

------------------------------------------------------------------------------

0 C:\DATA\
0 C:\DATA\office secretary\
0 C:\DATA\office secretary\Office Board\
0 C:\DATA\office secretary\Office Board\General Assembly of our Office\
0 C:\DATA\office secretary\Office Board\General Assembly of our Office\19th FIN Jepaul General Assembly & Board Metting 2009 September\
1 C:\DATA\office secretary\Office Board\General Assembly of our Office\19th FIN Jepaul General Assembly & Board Metting 2009 September\18th General Assembly & Board Mtd 21& 22 August 2009\
New File 0 GA 18 - Apolgoy Letter to sir for. shawai for his signature- Sept. 2.doc
2010/09/17 22:22:50 ERROR 3 (0x00000003) Copying File C:\DATA\office secretary\Office Board\General Assembly of our Office\19th FIN Jepaul General Assembly & Board Metting 2009 September\18th General Assembly & Board Mtd 21& 22 August 2009\GA 18 - Apolgoy Letter to sir for. shawai for his signature- Sept. 2.doc
The system cannot find the path specified.

Waiting 10 seconds...
Click to expand...

can anybody please guide me how to handle such long and stupid filenames. I'm sure the problem is not only in Vista.
Thankyou verymuch for your suggestions ..
Thanks
lexi

A: Solved: Robocopy in Windows Vista

That particular path is 259 characters.
The /256 switch turns OFF long path support, meaning it will fail with long paths. Try removing that switch.

2 more replies

I have a computer that is running Vista HP on its original C\: drive, that has a maintainance program that was preinstalled on my pc. I also purchased Vista Ultimate (retail version), that is installed as a dual boot. I originally ran HP for the business, running a program that used Sql Server, but it became corrupted, and was unable to be fixed, so I abandoned the drive with HP (C:\) and only use the drive with Ultimate (M:\) on it.
I realize you cannot simply copy a program from one drive to another, because it will not result in an installed program. I am hoping that Robocopy will be my answer. I tried the following steps:
I created a folder on my M:\ drive, the drive I now use, with the same program name as the original program on C:\. I then tried to run a command prompt script, with Administrative priviledges.
ROBOCOPY C:\Program Files\[program name] M:\Program Files\[program name]
Each time I run it, I get an error message:
Robocopy is not recognized as an internal or external command, operable program or batch file.
I realize I may have been able to add several switches to the script, but for some reason, my computer doesn't even want to recognize the Robocopy command.
Thanks
Dave

A:Unable to use Robocopy in Vista

It appears that robocopy is not in the path environment variable and the command prompt cannot find it. If it is in the normal location (\windows\system32) this should not happen.

But robocopy will not solve your problem. Installed applications have registry entries, and often other things as well, associated with them. Only the application installer knows about these things and only it can properly install an application. Robocopy has no hope of doing this.

2 more replies

Having trouble with quotes and folder names with spaces.
Cannot get it to run w/o an error.

SET _source=\\fs1\data\shared\"Carolyn Kris Nancy"
SET _dest=\\fsarchive\archiveshare\"Carolyn Kris Nancy"
SET _what=/COPYATOU /E /MOVE /MINAGE:1095

ROBOCOPY %_source% %_dest% %_what% %_options%

E:\Batch Move>robobatcharchive
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
-------------------------------------------------------------------------------
Started : Wed Apr 25 10:35:14 2012
Source - \\fs1\data\shared"Carolyn\
Dest - E:\Batch Move\Kris\
Files :
Options : /COPYAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #3 : "Nancy \\fsarchive\archiveshare"Carolyn Kris Nanc
y"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /? or read Robocopy.Doc.
NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
**** /MIR can DELETE files as well as copy them !
E:\Batch Move>robobatcharchive

A:Solved: RoboCopy

You need to put the quotes around the entire path:
"\\fs1\data\shared\Carolyn Kris Nancy"

3 more replies

I last used robocopy on 041209 and I updated my XP Home SP3 on 041609 and on 041909 I have found that robocopy does not work anymore. It will create the folder it is supposed to create but there are no contents in it. I have also tried xcopy and xxcopy and all they will do is the same. I repair reinstalled robocopy and the qui said "Please use Windows Update to check for any critical updates to the .NET Framework." This message was at the bottom of the gui and was a suggestion rather than a command about the .NET Framework updates. I have also run System File Checker.

What could be keeping robocopy, xcopy and xxcopy from copying correctly?

I have found that by pasting the robocopy argument from the
command file into the Run box the backup occurs as expected.
But the command file when clicked on still does not do the
backup. Below are two versions that work when pasted into
the Run box.

robocopy C:\Annoyance C:\BackupAnnoyance

robocopy "C:\Annoyance" "C:\BackupAnnoyance" /COPYALL /V /NP /R:10 /W:30

The results are the same when I use xcopy or xxcopy: clicking on the bat file does not backup anything but when I paste the bat files argument in the Run box the backup occurs.
Sincerely, Teefermup

A:Solved: Robocopy Does Not Work

8 more replies

Hi,
I've been wanting to transfer my files from an old HDD to a new one exactly as they are, with the time stamps the way they are currently on the old HDD and all, and I heard that using Robocopy via the command prompt can help me do that. However, I don't want to delete everything on the old HDD. I've been looking around the internet, and anything I can find is just confusing to me.

The old external HDD that has all my files and folders is J: and the HDD I want to transfer them to which is a new internal HDD is Z:

What would be the proper command for copying everything on J: exactly as it is to Z: ? I hope I put this question in the correct section, lol, and as always, thanks for everyones help.
- Guru
- Windows 7 Home Premium 64x, 16gb ram, 4.20GHz AMD FX quad-core cpu,

A:Solved: Right command for Robocopy.

16 more replies

I'm using robocopy (ver XP010) on a Windows XP laptop to copy user files to another drive for backup.

robocopy "c:\my documents" "Z:\myname\my documents" /XO /M /ZB /E /MIR /log:c:mylog.txt /TEE

It creates all of the directories and subdirectories but doesn't copy any of the files. The log shows no errors - total dirs 162 copies 162, total files 1458 skipped 1458.

To minimize variables I tried using a new usb external NTFS hard drive (Z) but it still skips all of the files. I've verified the permissions and owership of the files and everthing seems in order. The problem is limited to this computer, the other computers in the group are OK. Any suggestions?

I just found out that 2 of the 6 computers in this group fail so I will be compairing files and permissions etc. to see what the two failed ones have in common against the working ones.

A:Solved: Robocopy skips all files

7 more replies

I use ROBOCOPY to synchronize files between my desktop and laptop machines via a USB flash drive. ROBOCOPY is set to copy only updated files. It worked perfectly under Windows 7, reporting and copying only "newer" files; under Windows 8 it marks
and copies the newer files and marks all the others as "modified" and copies them as well, even when the "modified" files haven't been accessed or written to.

Here is the command line I am using:
%SystemRoot%\system32\robocopy C:"\users\Robert Jacobs\Pix" i:\Pix /PURGE /E /XO /FFT /XA:SH /DST /R:5 /W:2 /LOG+:C:"\users\Robert Jacobs\My Documents\work"\leap_down.log /TS /NP
As I said, this worked perfectly under Windows 7; it seems to be broken in windows 8. How can I fix it?
All help will be gratefully appreciated.
Robert

A:Robocopy problem under Windows 8

Could this be caused by the same problem that causes Windows File History to backup unmodified files?

The following thread discusses this topic: Windows 8 File History - Excessive backup - Excessively saving copies
of files (photos, videos, documents, etc.)
The fix there was to disable Homegroup functionality.
The question there was:
Why is File History saving so many duplicate copies of my media, when I'm not making any changes to the media or metadata?!?
Does anybody know?
and the final solution to date is:
Since I switched HomeGroup off, File History appears to be working sensibly. Only changed files appear to being backed up. My NAS is noticably quieter and my laptop far more responsive (as it isn't constantly backing up!!)

Thanks all - nearly gave up on File History. More than happy to live without HomeGroup as it really isn't needed in Win 8 as Noel helpfully pointed out above.
Could this be it? As far as I know, BOTH the File History and Robocopy use
Shadow Copy functionality to copy locked files on-the-fly. So it looks like, the problem lies with how Shadow Copy works when Home Group functionality is turned on.
Gentlemen, could you please verify that and check if switching Home Group off helps here as well or not?

Well this is the world we live in And these are the hands we're given...

32 more replies

After switching to Windows 7, my back-up batch file no longer works. I don't want to use the backup function - just want a shortcut to my own batch file on the desktop. I have tried replacing the xcopy command with Robocopy, without success. Can anyone give me a one-line executable, that will copy files from one folder on the HD to a folder on the external drive, only if the file on the HD is newer (as with the Xcopy /d switch)? Thanks.

A:Solved: Replacing Xcopy With Robocopy In Batch File

Try XXCOPY, it's kinda like Xcopy on steroids.

3 more replies

Well, after several failed attempts to clone my boot partition the right way, I broke down and used RoboCopy. Now, I know that you're not supposed to do this. I know it's bad joojoo. But I've done it now. It is done. Now I want to work with the partition I have and make it bootable. I have a sense that I will need to recreate the junctures that were on the original disk. And maybe something with securities as well? There were some "Error 5"s. Other than that, what do I need to do? The files themselves are copied. Now it's a matter of the hidden stuff, I think. Surely you guys know the secret glue that holds an OS together.

A:Solved: Copying boot partition with Robocopy, making it bootable.

Well, I ran chkdsk /v /r on the old drive, and it became stable enough to read without problems. So then I copied the boot partition with Partition Wizard. After all that hassle with Acronis, it was a free program I already had that did the job. I'm good now, so let's call it solved.

1 more replies

Hey all,

Well this place helped me write my first cmd script so i would like to share it with you all and hope you enjoy it.

This particular script allows you to back up selected files or folders from a client computer through to a server after answering a couple of questions.

Its a great script but unfortunantly i have no need for it as it does not meet our requirements any more (note i only wrote it last week ).

The script comes with a backup version, and a restore version... so the theory is that you can back up selected files and folders from one client to the server, then restore it from the server to a new client, all with simple prompts.

I have also commented throughout the batch file as much as i could so hopefully it should be fairly easy for any admin guys using it.

The items it backs up are:

My documents
Desktop
Favorites
All pst files on the system
NK2 file - outlook file that remembers email addresses when creating new email and entering email it automatically suggests previously used email addresses
Outlook signatures

Its easy to add extra things to this script aswell. Also it is fairly easy to create it to do all of the backups without any prompts...

basically this is a batch file that is simple, but i spend a day or so writing it, and im proud of my crappy script so if anyone can find any use for it please do try it.
(now i just have to work out how i upload it)...

Thank you and commends are definately welcome

Regards,
Ivan

More replies

Last week I used a robocopy tutorial on this site to create a backup script, and it was working fine. Today I tried to run this script, inputting new destination information but leaving everything else the same, and now it is copying all of the folders, but none of the files.

It counts a total of 509 Dirs but 0 files--no skipped, no mismatch, no failed.

My syntax/options are as follows:
robocopy "source folder" "destination folder" /E /tee /log.Public_backup log.txt
robocopy "source folder" "destination folder" /E /tee /log.Training_backup log.txt
pause

Does anyone see what might be causing this problem or have suggestions?

The source folder is directory:\folder and the destination folder is directory:\folder\subfolder\subfolder, if that matters.

A:Issue with Robocopy only copying folders, not files, in Windows 7

It should default to all files (*.*), but you could put the *.* in the command to see if it makes a difference.
i.e.
robocopy "source folder" "destination folder" *.* /E /tee /log.Public_backup log.txt

If that doesn't work can you post the actual commands you are using, with the real folder names ?

3 more replies

Hi,
I'm trying to migrate a robocopy based backup from XP (where it does work) to Windows 7.  The backup job simply copies a directory on the local PC to a network drive on the file server using a batch file which contains the following:
robocopy "C:\projects" "N:\backup" /e /s /r:1 /w:1 /log+:backuplog.txt
The user account it is running under has full access to the network drive (N:).  When I run the batch file directly from the command line it works perfectly.  It also used to work without issue on a Windows XP machine.  UAC is disabled.
Whenever the task runs it fails with the error code 0x10.
Thanks

A:Robocopy fails as scheduled task in Windows 7 with error code 0x10

10 (0xA) The environment is incorrect.

I would reciommend using UNC paths (\\server\share\folder\) instead of mapped drives and specifying full paths in quotes whenever possible (not backuplog.txt, but "c:\logs\backuplog.txt"MCP/MCSA/MCTS/MCITP

5 more replies

hi there here weee i learn so much

[ATTACH]here.zip[/ATTACH]

A:[SOLVED] BSOD - Vista SP2 x86 [moved from Vista/ Windows 7]

Hi -

The 2 dumps were inconclusive.

See if he Driver Verifier yields any clues.

Driver Verifier -- http://sysnative.com/0x1/driver_verifier.htm

Windbg Logs
--> http://sysnative.com/BSOD_2010/jcgri..._jcgriff2_.txt
--> http://sysnative.com/BSOD_2010/jcgri...riff2_.txt.zip

Regards. . .

jcgriff2



BSOD BUGCHECK SUMMARY

Code:

Built by: 6002.18267.x86fre.vistasp2_gdr.100608-0458
Debug session time: Fri Dec 17 02:18:05.692 2010 (GMT-5)
System Uptime: 0 days 0:04:11.363
BugCheck D1, {abfac898, 2, 0, 82330ddd}
Probably caused by : ataport.SYS ( ataport!IdeLogCrbActive+7b )
DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
BUGCHECK_STR: 0xD1
PROCESS_NAME: System
FAILURE_BUCKET_ID: 0xD1_ataport!IdeLogCrbActive+7b
Bugcheck code 000000D1
Arguments abfac898 00000002 00000000 82330ddd
??????????????????????????????????????????????????????????????????????????????????????
Built by: 6002.18267.x86fre.vistasp2_gdr.100608-0458
Debug session time: Fri Dec 17 02:13:22.182 2010 (GMT-5)
System Uptime: 0 days 0:03:11.869
Probably caused by : ntkrpamp.exe ( nt!KeSetEvent+53 )
DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
BUGCHECK_STR: 0xA
PROCESS_NAME: iexplore.exe
FAILURE_BUCKET_ID: 0xA_nt!KeSetEvent+53
Bugcheck code 0000000A
Arguments 00000016 0000001b 00000000 81cf87b6
??????????????????????????????????????????????????????????????????????????????????????`

19 more replies

I have Windows Vista Home Premium and somebody recently mentioned to me about Robocopy to use from cmd. Unfortunately I got into a mess and cmd froze so that I had to force shut down.

Can somebody kindly let me know how to use robocopy to copy files and directories my document on C: drive into external hard drive J: in a simple language as possible.

Thank you very mcuh.

A:Robocopy

Welcome
This is how robocopy is used:
How to Copy Vista to Another Hard Drive | eHow.com

That being said, I would like to mention that in several years of helping out at the Vista Forum, this is the first question about robocopy. Most members use Macrium Reflect to make monthly backups. These backups are always available in the event of a catastrophe with the OS. It can also be used to transfer to another drive.

10 more replies

Does Robocopy /MIR copy all files or just the ones that are added and those that are changed? I don't want to start this if it is going to take hours and hours. thanks...

A:Robocopy /MIR

Just the changes.

7 more replies

We are looking to migrate a SQL database to a new server. The database is for an imaging software and has pointers to the images. We are going to move the database in the next week or two. I wanted to start copying the image files to the new server to prepare for the migration (about 300 gig of 17k files). I understand that robocopy is a good program to accomplish this. I am looking to copy all the files, folders, and subfolders over, then copy only the changes over nightly. What is the correct command line that I should use to accomplish this? Can I save it to a bat file and use windows task scheduler to have it run nightly?

Thanks in advance for all of the help!

A:robocopy

Are you migrating to a server that will be running the same software? Why not use an SSIS package? That way, you can migrate the complete database to the new server and just point your programs as necessary.

3 more replies

I have created a robocopy.bat as below :

robocopy C:\Users\Faust_000\Documents\Alfredo "F:\Backups Documents" /e /mir /z /np /tee /log:Alfredo_log.txt

and I have created a Planned Activity into the Planning Utility to run at certain time every day.

Now my question is :
1. if manually activeted by double click robocopy.bat it perfectly works and the log.tx file is created
2. if I execute the robocopy by the Planned Activity (by manually Excute or automatically at the planned time) the robocopy is done correctly but the log.txt file is not created or updated.

I did both on W7 Professional 64bit and on W8.1 64bit but no difference.
Could someone help me to understand why the difference of results manually and via Planned Activity ?
Blau0179

A:Robocopy

I don't use Robocopy or Planned Activity but it might perhaps be related to the current directory when the bat file is executed. If so, the other log file should be somewhere on your system and you could search for it.

I mean when you manually run the bat file you get a certain "current directory", but in the other scenario you get another directory. You can try to include a path for the log parameter or move to a certain directory with the cd command in the bat file, before the robocopy command.

2 more replies

Hi there,

I want to use ROBOCOPY to move any file that is older than 30 days.
I've tried this command but it seems to move the file anyway, even though the file is only 4 days old:

robocopy * C:\b2d C:\archive /mov /minage: 01-04-2011

From "/minage: 01-04-2011" i thought it would only move files that are at least 30 days or more old. But this seems to move everything.

Can anybody explain why this is happening? Is it because i used a wildcard on files, will that not look at the file age?

Thanks!

More replies

Hello all,

To save my life I could not get the Robocopy GUI to work. I have no problem using it with command line by dropping in to CMD.

Tried the GUI it reported that the job is finished as soon as I click "RUN" but nothing copied.

Thank you kindly,
Nid

A:I need some help with Robocopy GUI please.

Why not just put the command line commands in a bat file and run them like that? It's how I do my backups.

2 more replies

Hi, I have 2 questions which I desperately need help with. Here's the question: 1. robocopy shoud Run in a separate terminal window and recheck file system changes every minute. 2. write a continous logfile that contains all detected file system changes including full pathnames of affected files. How do I do this?

This is one way, put this in a batch file:

:Start
robocopy command here
timeout 120 > nul
goto Start

Lots and lots of robocopy parameters, one of which is /log:file (file being the file you want info logged ion). > nul hides the Timeout in n seconds message.

5 more replies

Basically I would like to copy from my Skydrive to copy to my NAS once a day everyday. I know some of the basics but need help with specifics like copy to folder and making sure the newest file exists as the saved copy.

Here we go!

Robocopy C:\Users\Clive\SkyDrive\Documents B:\ /

If your looking for a clean way to do that, you should look at Microsoft Richcopy which is a GUI'd + version of Robocopy. I've used it for years and it works fine under Windows-8.

Online Guide & extra info: RichCopy Guide - ETCwiki

Hope it helps.

3 more replies

Need to back up data-drive regularly on drive F and send to data-drive G

Robocopy has been mentioned as win7 built-in. I'm confused what is it & how to use it?

A:Robocopy how?

ROBOCOPY - Create Backup Script

2 more replies

I have been forced by the man to switch to vista. I had a simple xcopy to duplicate a folder structor. Would someone be kind enough to translate this into robocopy for me?

xcopy r:\_DND\*.* r:\SMcbrid2\ /E /O

Thanks for the help

A:Robocopy

Here you go:

Code:
ROBOCOPY r:\_DND\ r:\SMcbrid2\ *.* /E /COPYALL

1 more replies

how do I access a command line to be able to use robocopy? when I use the regular command prompt, I get an error message that says Robocopy is not recognized as an internal or external command, operable program or batch file. What am I doing wrong?

A:Robocopy

Where did you get the program? Sounds like it's corrupted.

2 more replies

I have been using xcopy to copy data from a file server to a flash drive. That works OK, but after some time the flash drive is cluttered with files and folders that have been moved or deleted from the file server.

I want the flash drive to mirror what is on the file server, so I decided to give ROBOCOPY a try (version XP010 on a Windows XP computer). Here is the line in my batch file:

ROBOCOPY \\fileserver\share\frank\somefolder E:\somefolder /COPYALL /B /MIR /R:0 /W:0 /LOG:MyLogfile.txt

This works fine except the log file reports Error 3 "The system cannot find the path specified" for files in only one subfolder, and deletes all the files in that subfolder from the flash drive.

The subfolder name is "Computer" (which as far are I know isn't a reserved name), and it has the same attributes and NTFS permissions as all of the others.

Any ideas what the problem could be?

A:RoboCopy Issue

Noone uses Robocopy?

1 more replies

G'day,

Problem description: after my Vista laptop crashed (hung up in windows start-up loop) I used

robocopy c:\ d:\complete /mir ..... from the restore cmd prompt to make a backup of ca. 50gb to external hdd.

I then installed Windows 7 on the machine and used

robocopy d:\complete c:\complete /mir ... so I would be able to pull whatever folder I need to the new system.

The problem is the in both version I can see robocopy in the cmd shell copying the files in their respective folder hierarchy (which takes ages!). But on both, C: and D:\complete, I only see a folder "4d0a0xxxxx00e8e4c7332a3a394c". Right-click on the folder gives a size of approx. 6mb only, although my c: hdd space was reduced by ca. 50gb???? So, I assume the restore did work, and this is a permission problem.

I tried to take ownership of the folder under the new system to no avail. (just to clarify: i use the same username and pwd under win7 as under vista, and lost pwd is not an issue, in case i would need it to gain access)

All input highly appreciated! Thanks,
Rick

More replies

I've been using Robocopy for a while now and I have found it to be a simple and mostly efficient tool to mirror contents from one drive to another, and I've created a couple of batch files to simplify typing in parameters, like "AF ? ?" to copy my data files from one drive to another.

The thing is, for the last two days my data contents have been mirrored to my HDD partitions and a USB device absolutely fine - only a few files have been modified each time and I can rest assured that the contents are identical. The whole process has only taken a few moments.

But last night, the clocks went back and then earlier today I ran Robocopy once again to mirror my data contents. The HDD copy went without a hitch, but when running it to mirror contents to the USB device it started to recopy EVERYTHING over to it, naming all the files "Older"! What's more, I check the "modified" date/times on both sides and they're identical! I can only assume that the change in the clock from yesterday is the cause, and something unique to FAT32 file format (which the USB is).

The least I want to do is not to copy files with an older timestamp on top of new ones (if that's what's happening) so is there a way I can still use /MIR and use the /XO (exclude older) switch as well?

A:Robocopy help required

Well, I'm trying the /XO switch, and it seems to have worked so far.

1 more replies

Good Afternoon,

I am trying to do work for a client of mine, and I am having problems with the robocopy command that i am using.

Here is the command
robocopy.exe \\USER2\Photos \\SERVER1\photos /e /m /R:10 /W:2 /XF CLIENTroboPhotos.bat robophotos.log /xd c:\photos\photos-add /V /log:\\USER2\Photos\robophotos.log

Copys from Users 2 photos folder and copies it to the server photos directory

then i put a command to do /xd c:\photos\photos-add which is suppose to exclude it, which it doesn't.

It just keeps replicating each other in each folder.... Catch my drift?
Please someone who is good with Robocopy, take a look at the script and see if you see a flaw in it.

Thank you!

I just cleared 15-16 extra space on the server, and now i am back to where i use to be 256 megs free.....
**I WISH CLIENTS BREAK INTO THE WALLET AND BUY A NEW SERVER!

A:Robocopy Issue

anybody? have an aswer for this?

3 more replies

Hi All,

Quick question regarding robocopy. I am not that great in using it but I did manage to figure out that how to do basic copying and mirroring. My main issue is copying over files that have security permissions.

At this point, I have this:
Code:
robocopy c:\foldername e:\foldername /copyall /mir
What would I add and does it matter where I place the syntax for it to work?

Help appreciated.

EDIT: Figured out the security part. How would I get the script to still copy everything in the folder if its being used by someone else or they forgot to close it?

Thanks.

A:Robocopy script

Robocopy cannot do it by itself.
http://ithelp.cveg.uark.edu/IT_Help/Documents_files/backup.pdf

3 more replies

Hello everyone been lurking around for awhile, so much knowledge on this forum.

I hope someone can help me, I am just a noob, don't know to much.

I ecently purchased a synology Network Attached Storage (NAS).

and I would like to set up so that files tranfer from one folder to the next automatically, I am not sure what type of line to put into the command prompt?

The original folder is C:\user\recordedtv the other one is on my network and shows up as DISKSTORAGE i have a folder on there called beyondtv and would like to copy all files from C:\user\recordedtv.
How would I do this?

A:Robocopy Synology

Welcome to Seven Forums,

You may definitely setup to sync and backup files automatically to your NAS. Pls check out SyncToy, its a Free cool utility from Microsoft and its easy to setup. Sync files with your NAS ? Cogito, ergo sum

7 more replies

Hi
I've just recently realized that copying folders to a backup hard drive resets their "created" date. Should my computer ever crash, all my backup files will state to have just been created on that certain date.

Me, being the organize-freak I am, have been looking for a solution so my backed up files can have the same time stamps as on my computer right now.

I've done a little searching, and have found that people always recommend Robocopy. Problem is, I can't understand a word of the tutorials. Is there anyone with a layman's explanation for how to run Robocopy to carry out what I want?

And also just for the heck of it, is Robocopy the only solution? Is there some sort of back up program on Windows 7 that can do that?

Thanks!

A:Timestamp/Robocopy help

Some of the other posters have had similar problems, book1245, so here are a couple of references to other posts that might offer a little bit of guidance:

There’s some help for you in this thread: "Date Modified" changes when copying... Take a look at the post from Bill2 which has, among other things, this site: How to copy or move files and folders whilst maintaining their original time date stamp. | TechHead.co.uk, (and offers advice about your Robocopy problem as well), and the post from Casca which offers this advice: In a command window, run [xcopy] with the following switches: /s/e/c/a/k/h.

See also the post from huge in this thread: "easy transfer" resets folder modified date who apparently found a way to fix his problem, with only a mild amount of pain.

3 more replies

Within ROBOCOPY i need to write a script that will compare one folder to the other. The differences will be copied to a third folder and after copied to a third folder be copied back to the second folder.

Compare Folder 1 to Folder 2. Differences in 1 to 2 get copied to Folder 3 and after copied it will be copied to folder 2.

Anyone have any ideas?

A:RoboCopy question

Hi and Welcome!
May be better in the development section of the forum, as that is for scripting.
Click the red triangle next to your post and ask for it to be moved.
Kind Regards
Anthony

1 more replies

I have a quick question, is the Robocopy.exe in Windows 8.1 compatible with Windows XP or do I have to use the one in the Resource Kit?

I could download the kit, but I don't want to download the entire resource kit on each client that uses our software, as our software that utilizes it only requires the robocopy.

2 more replies

We are migrating our file server from Novell to Windows and I will be using Robocopy to do the copy. i know I cannot move the Novell rights so I have setup the folders (blank) on the destination ahead of time with the rights I want. I was going to just use the MIR switch to keep things in sync but read that MIR could overwrite the rights on the destinantion, is this true? I am not trying to do anything with rights and don't want any rights being assigned or changed.
Am I better off using /E /Purge or /MIR.....or would I be better off with a different program like RichCopy.
Scott

More replies

Hi

With the Robocopy command of Windows 8.x, how do I do a copy of a file (renaming it) in the same directory of the source file?

Thanks

Bye

A:Robocopy and same directory

You can't. Use copy or xcopy if you want to rename.
e.g.
Code:
xcopy c:\test\old.txt c:\test\new.txt

Note xcopy will always prompt you with "Does c:\test\new.txt specify a file name or a directory name on the target" so you would probably be better off with
Code:
copy /v c:\test\old.txt c:\test\new.txt

where the /v verifies the copy.

1 more replies

HI,

I'm trying to add a switch /MAXLAD:n Excludes files with a Last Access Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.

I only want files that has been modified starting from Sept. 01, 2008 to current.

Am I inputting this correctly? Help

A:Anyone familiar with Robocopy?

DUH, I figured it out, I took removed the "/" from the date portion.

1 more replies

I am copying files with dates in the filename (filename_20091127.txt) from one location to another. How can I drop the date from the filename when moving/having moved the files accross? The file types and filenames vary from file to file but the date format will always be '_YYYYMMDD'. Is this something that can be done with RoboCopy and if so, how? If not, with what and how? Thanks in advance.

A:RoboCopy Query

Robocopy doesn't rename files.

Welcome to TSG!

For this, I'd use RenameMaster, and just remove the last 9 characters of the file name.

It's on the Scripting tab, about 8th item down, Remove Beginning/Ending

If this is a daily occurrence, you could write a batch file to remove the date after all the files are copied. Not too hard to just remove the last 9 characteers in a name.
If you need to check for resulting duplicates or confirm it's actually an underscore followed by a date it would get more complex.
Code:
Setlocal EnableDelayedExpansion
Set _Folder=C:\Location of Files
PushD %_Folder%
For /F "Tokens=* Delims=" %%I In ('Dir /B "%_Folder%\*.*"') Do (
Set _Fname=%%~nI
Rename "%%I" "!_Fname:~0,-9!%%~xI"
)
PopD

1 more replies

Hello Everyone,

I have been working on this for the past three days getting no where.

The system I am trying this on is a Win7 64 bit Home Ed., what I am trying to do is get a batch file created where it copies certain files to an external hard drive. Yes I am already using the Windows Backup that is included but I want to do this as an extra measure.

I have been trying to get the following command to work:

robocopy C:\Users\pare80\Documents E:\backup\Docs /E /CREATE /MIR /SEC /ZB /R:3 /V /FP /TEE /XJ

It looks like the command ran, but when I go to the E drive the folder backup is there but nothing else.

Any help will be greatly appreciated.

Thank You,

-- ParE

A:Robocopy Issues

Take the switch /CREATE away from your string. It only copies the folder (directory) structure with 0-lenght files (placeholders). Your command string should otherwise work just fin. Remember to run command prompt as administartor.

1 more replies

Hi all, quick question.

I have used Robocopy to back up all my photos etc. for yonks, set it so that it mirrored by files on my main laptop. I have since had the need for faster and bigger storage and so have invested in a NAS. Awesome.....BUT...

when I run my script it no longer detects that a copy of the file already exists - it thinks every file is 'newer' and so it copies everything again (not funny given it's 50Gigs!)

My script consists of several lines like this...it's very simple(!)..

robocopy "c:\Users\Steve\my pictures" "\\LS-XHLA97\backup\sr-backup\pictures" /mir /xd *.lrdata

robocopy "c:\Users\Steve\Modo" "\\LS-XHLA97\backup\sr-backup\Modo" /mir

Any ideas? Or suggestions for another way of doing this type of backup?

Many thanks
Steve

A:Robocopy and NAS problems...

8 more replies

Robocopy is a nice tool for backup scripts but for casual use there are a large number of Gui interfaces and Shell Extensions to make using it easier but i am trying to find the one that is the most intuitive and i was wondering if anyone has a list or knows of a place where i can compare the various utilities out there.

More replies

I'm trying to use Robocopy to copy from My Documents to a network path similar to the following: \\it\shared documents\my folder. When I try to use Robocopy, I receive the following in the log file.

D:\Documents and Settings\<my user>\My Documents\TMI\
2008/09/29 13:05:45 ERROR 31 (0x0000001F) Changing File Attributes D:\Documents and Settings\<my user>\My Documents\TMI\
A device attached to the system is not functioning.

Googling this error code hasn't gotten me very far. Any ideas?

More replies

Evening all,

Just curious to know if anyone uses the built in utility to backup software on your machine, im trying to backup my itunes folder to an external HD but having a few issues to get this to work properly! I also use sync toy for backing up but just really want to know what everyone else uses?

As for image backups you cant beat Macrium Reflect imo

A:Anyone use robocopy to backup?

I don't use it myself, but have you tried the Robocopy GUI? On the same site there is a write-up of the RichCopy tool.

I haven't tested RichCopy on Win7 but I have tested the Robocopy Gui and it works fine.

EDIT: I just downloaded and installed RichCopy and it appears to be working fine in Win7.

2 more replies

I've never had a backup routine but am about to begin. Was going to implement RAID 1 but after some forum education am finding out a removable backup disk is what I really want. So, should I assume Robocopy (likely with GUI) is still the way to go for my simple /E /Purge needs? I will be mirroring both a small system drive and a 2Tb data drive.

Cheers!

A:Robocopy still the best option?

Use Macrium Reflect Backup and Hard Disk Imaging for Windows 7, Vista, XP and Server 2003/2008

9 more replies

This line below is included inside a batch file for backups -

robocopy "\\Xserver\d$\" "F:\HTV Data Vault\Servers\X Server\Data Drive D" /E /ZB /COPYATS /NP /w:30 /r:13 >> "F:\HTV Data Vault\Backup Log Files\server.txt" Now when I run the batch I get this error - ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows :: Version XP010 ------------------------------------------------------------------------------- Started : Wed May 13 11:26:23 2009 Source - \\Xserver\d$" F:\HTV
Dest - F:\HTV Data Vault\Servers\Data
Files :
Options : /COPYAT /R:1000000 /W:30

------------------------------------------------------------------------------

ERROR : Invalid Parameter #3 : "Vault\Servers\X"

I have another line of code that gives a similar error....
YET - when I run this line below in the batch file it works perfectly-

robocopy "\\Xserver\c$\Documents and Settings\All Users\Desktop" "F:\HTV Data Vault\Servers\X Server\Desktop" /E /ZB /COPYATS /NP /w:30 /r:13 >> "F:\HTV Data Vault\Backup Log Files\server.txt" I am at a loss here as to why robocopy isn't processing my line correctly. Can anyone help me on this? A:Having a Syntax Problem with Robocopy bradacus said: robocopy "\\Xserver\d$\" "F:\HTV Data Vault\Servers\X Server\Data Drive D" /E /ZB /COPYATS /NP /w:30 /r:13 >> "F:\HTV Data Vault\Backup Log Files\server.txt"

Now when I run the batch I get this error -

Source - \\Xserver\d$" F:\HTV Dest - F:\HTV Data Vault\Servers\Data Click to expand... The \ after d$ is the problem. Robocopy expects another folder name in the source path. It takes the 'quote space' as the start of the folder name. The next " terminates the leading quote. It then reads up to the next space to terminate the source path producing the source you see in the Error.
At least it seems like that's what it is doing.

Code:
robocopy "\\Xserver\d$" "F:\HTV Data Vault\Servers\X Server\Data Drive D" /E /ZB /COPY:DATS /NP /w:30 /r:13 >> "F:\HTV Data Vault\Backup Log Files\server.txt" HTH Jerry 3 more replies Answer Match 39.48% Hi, So I've just got myself a Crucial M4 256GB and want to move my existing Win 7 x64 installation off my HDD and on to my SSD. I've done all the preliminaries in Diskpart and have the drive marked as active. The last step is to copy all the files across (rather than use cloning software) with Robocopy. However, even in an elevated command prompt I'm getting 'Access is denied' errors on the important stuff. The command I am using is: Robocopy e:\ h:\ /e /copyall /dcopy:t /r:0 (e and h being what Vista has assigned each drive when trying it in that) also tried the /sec switch with no joy. I've tried this using the Windows 7 install DVD and within Windows Vista x86 (the HDD is a dual boot with 2 partitions; one containing 7 x64 and the other Vista x86). Any help on this one, please? A:Installed new SSD - Having Robocopy failures. I've added the /b switch in to the command line which seems to now allow copying of files previously denied. Shall see if this has done the trick once the copy completes. 3 more replies Answer Match 39.48% Gentlemen I need a nudge to get Robocopy going. We have 2 HDDs with our data on board. Recently I dropped the original from my desk to the floor. Its dead. Real dead. So now there is one...... left. I want to Robocopy it - the entire HDD (located drive F) name for drive is Terra 3. I have an empty 3Tb HDD waiting to receive the contents (located drive H) folder name> Terra 3 Back Up Write the steps & the formula please. I'm way too nervous. If I lose T3 I'll need to contemplate a window exit. A:Robocopy - nudged required ROBOCOPY is a folder copier, not a file copier. Thus, you need to specify each folder individually. Lets assume you have 3 folders called A, B and C. Each of those may have sub-folders beneath them, and each of these contain several files. Create a .bat file on your desktop as follows, then run it as administrator. Code: robocopy F:\FolderA H:\"Terra 3 Backup" /copyall /e robocopy F:\FolderB H:\"Terra 3 Backup" /copyall /e robocopy F:\FolderC H:\"Terra 3 Backup" /copyall /e The copyall switch copies all the file attributes. The /e switch copies any subfolders even if they are empty. Since this is the first time you are copying (and presumably its a once off) I would use XCOPY instead, since you do not need to copy each folder. ROBOCOPY holds no advantage over XCOPY for a one-off job. In an elevated CMD window, type as shown below, and hit enter: Code: xcopy F:\*.* /V /E H:\"Terra 3 Backup\ /v verifies each file after copying /e copies all folders/sub-folders even if they are empty Useful information if you insist on using ROBOCOPY: ROBOCOPY - Create Backup Script 2 more replies Answer Match 39.48% I'm transfering around 216GB of files from my old hard drive to my new one using a SATA->USB converter cable (I only have one HDD slot). Using robocopy to transfer the files, the system freezes completely - nothing responds at all and any status LEDs that are lit at the time remain lit. My only option is to turn off the power. The clock will show the time of the crash (i.e., it stops). I've yet to 'witness' the crash, but when I leave the computer alone for a bit and come back later on, I find it locked up. Strangely, since then, I'm now using a normal drag+drop to copy the files, and it hasn't crashed in all the time it's been copying so far. There's nothing in the event logs... Any ideas? A:System freezes when using robocopy Quote: Originally Posted by CreepinJesus I'm transfering around 216GB of files from my old hard drive to my new one using a SATA->USB converter cable (I only have one HDD slot). Using robocopy to transfer the files, the system freezes completely - nothing responds at all and any status LEDs that are lit at the time remain lit. My only option is to turn off the power. The clock will show the time of the crash (i.e., it stops). I've yet to 'witness' the crash, but when I leave the computer alone for a bit and come back later on, I find it locked up. Strangely, since then, I'm now using a normal drag+drop to copy the files, and it hasn't crashed in all the time it's been copying so far. There's nothing in the event logs... Any ideas? Ken What version of Teracopy? I had similar problems with the free version. there is nothing in event viewer>windows log>applications? 8 more replies Answer Match 39.48% Hi Everyone, New to the forum here and would like to throw this scenario out to all the Tech Support Guy users out there. A little background: I use backup exec 10d to run our backups: full backups on weekends, and diffs during the weekdays. Attached to my fileserver (Win 2000) are 2 arrays; a production and backup array (which we robocopy to everyday and evening). Last week we ran into some NTFS corruption so we took the production array offline made the backup array the production array and robocopied the data to the new production array. After the robocopy we ran a chkdisk on the NTFS corrupted array. When the Diffs ran that night, the archive bit must have been reset because the job ran as if it were a full backup job. Here's the problem: It's happened again and we need to cut over to our backup array. I haven't figured out a way to "save" the archive bit through robocopy (still figuring out all the switches). Question: Would the /B switch in robocopy do the job? Here's what I'm currently using: del /q /f f:\rcd.txt robocopy d:\ x:\ /V /FP /XF db.* /TEE /LOG+:f:\rcd.txt /E /PURGE /COPYALL /Z /ETA /R:2 /W:1 In the event I need to cut over to my backup array and run my nightly diff, I don't want to run into a scenario where a full is running during the week. Any and all help is appreciated! Thanks, RossDey A:Saving the archive bit through Robocopy? When you do a copy in almost all cases the archive bit is reset. You have a few options maybe use something like - http://www.theutilityfactory.com/summaries/copy-files.htm Where it looks as though it retians all attributes when it copies (I have not tried this it is just an example). Another thought is possibly find a way to script out a way for it to search all files that have the archive bit set to ON (the files you want in your incremental) also known by attrib +A and make sure to set it after the copy with the attrib command? What your looking for isn't right there within the robocopy functionality though sorry. You could skip the entire backup and set all the attribs in the file off with /A-: A but this would then totally defeat the incremental and make it so nothing is backed up. 1 more replies Answer Match 39.48% I apologize if this forum is meant for tech people as I'm a novice computer user, but I really need help. I have Windows 7 x64 and I used RoboCopy for the first time, and have messed up royally. I was trying to copy folders and files from my computer to an external hard drive. My external hard drive had important files and folders on it already, and I thought that copying more data using RoboCopy would just add to it, but it deleted everything that was on the external hard drive when it copied the additional data. Can I undo what just happened? Is there any way to revert? Or maybe there's some way to recover that deleted data? I used: Robocopy C:\Users\Name\Documents F:/MIR /dcopy:T I would be really grateful to be helped. Thanks in advance. More replies Answer Match 39.48% Hi In Windows 8.x, should I move the entire contents of a directory (containing files and directories) in a Media sub-directory. I have: Code: c:\Test c:\Test\<File_name1>.txt c:\Test\<File_name2>.txt c:\Test\b c:\Test\c I have tried with the command Code: robocopy c:\Test c:\Test\Media /move but it only moves the files of the Test directory. How come the move option of robocopy acts like the mov option that is to say moves only the files and not the directories? So, how do I move even the directory? Thanks Bye A:Robocopy /move problem Hello balubeto, You can trythis: First, create a new folder named "Test" under "C:\Test\Media", then enter the following code: robocopy c:\Test c:\Test\Media\Test /move If you want to move the whole "Test" directory, you cannot do it because the location you want is still under "Test" directory. 4 more replies Answer Match 39.48% I have an older dual HDD enclosure that I cannot set up for mirroring with windows 7. Can someone help me with a robocopy script that will initially back up all the data from one of the drives to the other, then only the changing files after the first run? Thank you in advance. A:Robocopy for a Dual HDD setup The same command will do both - and it creates a mirror backup, removing any folders and files from the target that do not exist in the source. d: is the source and e: is the target This is untested: test it on a couple of USB sticks with test data on them first, as it can wipe the target drive very easily too. Code: robocopy "d:\" "e:\" /mir 1 more replies Answer Match 39.48% System: Windows 7 Ultimate 64-bit german When I try to copy one dir to another dir ("robocopy.exe c:\test1 c:\test2 /e") the copy seems to be ok, but the result output in console it not complete and unformatted. It seems, that only the numbers of the expected output are displayed in one row.... Anybody here can help me with this issue? Thanks ahead... A:Strange Robocopy Problem Here an Screenshot of this issue...Both folders were emtpy. 3 more replies Answer Match 39.48% Hi Using Robocopy, I should copy the files of a directories structure with all their ACL and their attributes except the attributes of reading in another structure. How should I do this? Thanks Bye A:Robocopy and attributes problem /copy defines the attributes you want to include (defaults to data, attributes and timestamps). /copyall includes everything including ACL. If you want to then make them read only add /a+R to set the Read-Only attribute. something like robocopy C:\users\user1\Documents E:\Backups\Documents /mir /e /copyall /a+R Is that want you want to achieve? Robocopy 1 more replies Answer Match 39.48% Uploaded the 3 working files, basically it is a script that closes outlook and saves any drafts and will then backup user profile including .pst that would be otherwise locked. Exclude.txt should be exclude.rcj but its a non allowed filetype My problem is when I try and use %username% in the source or destination in the job file (.RCJ) it will give me a message along the lines of The file was sitting on my desktop (reason for the first part of directory) invalid source destination C:/user/kriern/desktop/robocopy/user/%username%/ rather then just using the source i specify of user/%username% This works when i implement it in a .bat instead of a job file why does it stop working? Bat files have a 2000ish character limit and i do not want to run into issues when i get more and more specific with my exclusions I would love to be able to just throw it on users computers without changing anything and procced to use windows scheduler to run it More replies Answer Match 39.48% Hi there, New to the forum, please go easy I've got a robocopy moving a file using /MOV from one folder to another. Is it possible to add a second destination so that the contents of the original folder will be moved to both destination folders? How would the syntax look? (below is current syntax) robocopy "\\source path" "\\destination path" /S /E /V /NP /MOV /XD in /R:10 /W:30 Thanks A:ROBOCOPY - /MOV to two destination folders Hi mate. You could do two things: 1. You can try to use ROBOMOJO to run multiple robocopy jobs more info here: Running multiple Robocopy jobs in one batch file or 2. You can run two separate robocopy jobs, with 10 minute interval between them. Check this post: One source to multiple destinations with Robocopy Hope this helps. 2 more replies Answer Match 39.48% I provide IT support for a small business with about 5 users each with their own computer. Their last IT guy setup Retrospect backup backing up the user folder to the server and then CrashPlan Pro was installed on the server to backup to their cloud service (because they let you backup an unlimited amount of data on a single computer for$10 per month).

The first problem was that Retrospect doesn't save the data in a format that can be easily viewed to compare the backed up copy to the copy still on the original drive. The next problem was that one of the users got a message that their computer hadn't backed up in a few days so they uninstalled it from the server and reinstalled it but now it is asking for the key which nobody knows.

So, I figured for so few users I could make a basic xcopy script set to run at login and I did and it worked...but several people have told me that robocopy is worlds better than xcopy.

So, I know the format would be something like this for each user:

robocopy c:\Users\Brittany \\server\Backup\Brittany /e /mir /z /fft /w:5

Would this work? Anything you would change?

I have a few questions also...

1. What exactly does multi-thread copying do and how do I know if I should enable it?
2. Will this only copy new/changed files or everything?
3. I know the mir option deletes files from the backup that are deleted from the original...is it possible to have it back up the new and changed files daily but to wait a week or so before deleting a de... Read more

A:Help with Robocopy user backups?

ROBOCOPY - Create Backup Script

2 more replies

Didn't know where else to put this so I hope this is good.

Twice now I have experienced a issue with robocopy where while copying a user folder it mass nests the Application Data folder within Local. It replicates this to both \User\AppData\Local and \User\Local Settings. Weird thing is Local Settings is just a place holder to point legacy programs to the new location so why robo copy created a folder from this I am not to sure. Both times I have had this happen it has replicated the Application Data folder so many times within itself that it fills the HDD down to the last byte. And since it is nesting it the path is far too long for any standard windows command to do anything with this structure. For example my last instance of it replicated about 15,000 files into over 200,000 from ~9GB to over 80GB and over 30 directories deep. Not sure if there is any end to it or if it does just keep repeating until the drive is full. Some loop issue with the local settings place holder?

Anyway to delete this massively nested directory structure I have found two methods.

1. Boot into Ubuntu (or any distro of your chooseing... I like the Ubuntu live CD) and delete the folder from there. In Ubuntu it moves into the trash so you have to delete it from there as well.

2. Use robocopy again to copy over a nul directory. For instance I created a empty folder called empty on the root of C and then as follows ROBOCOPY C:\EMPTY "X:\USERS\ADMINISTRATOR\APPDATA\LOCAL\APPLICATION DATA&... Read more

A:Robocopy mass nesting bug

This sounds as though it could have something to do with junctions. Have you tried the command with the /XJ switch? You might need to use /XJD (Directory) or /XJF (File) switch instead. This switch tells Robocopy to ignore or eXclude the specified type of Junction point. These are included by default.

9 more replies

Hi,

I want to use Robocopy to backup the data from my external hardrive D to a file called 'Backup' in a cluster storage W.
I only want to backup the modified and new files. In other words, I don't want to back up all the files in D every time I run Robocopy.

This is what I wrote by reading other posts on the forum:
title Backup personal files
robocopy D:\ W:\Backup /e /mir /np /tee /log+:backup_log.txt
pause

However, the script below does not back up all the files.
Any suggestion on how I can improve the robocopy script?

Thanks a lot for your help!

More replies

I have setup a bat file to copy my files to the linkstation. As Below:

Robocopy "C:\Users\User\Documents\Janine" "B:\Documents\Janine" /MIR /E /SEC

But when it gets to certain files it says access denied. How do I get it to copy these files with permissions...

A:How to Robocopy my files to Linkstation.

Hi,

Which file is causing issues?

Try this:

Code:
Robocopy C:\Users\User\Documents\Janine B:\Documents\Janine /MIR /E /COPYALL
Regards,
Golden

9 more replies

I am using Robocopy to do a one way copy of changed user data files/directories from one computer to my server prior to running Backup.

The syntax I am using is :
robocopy y:\transport e:data\transport /copyall /E /log:e:\data\non-transport\logfiles\

Y is a mapped drive on my laptop. All newer files in the source directory and all of its subdirectories should be copied to the object directory

The documentation on Robocopy is sketchy at best. I believe this syntax should only copy source files that are newer than those in the target directory. However, if the date/time stamps are equal, it copies the file. It appears to me that all of these copies are unnecessary and it just opens the door to errors.

Can someone identify my error in thinking

A:Robocopy results not as expected.

Do I have Bad Font Odor? It seems that none of my posts ever get responded too, I try to be pretty discriptive in my subject and I get no responses.

Some of the posts that say "Vista not working" get a magnatude of responses.

When I used XCOPY /D only Sources file with the date/time stamp newer than the DT Stamp in the Object got copied.

Robocopy seems to copy files from the source if the DT Stamp is newer or equal than that of the Object. Guess what, once it copies the newer file, the DT Stamp in each directory is going to be equal, no need to keep copying it.

This should be a basic test before decommitting a working product, ie XCOPY, that has been around forever. Hopefully this is not "AS DESIGNED"

Someone at least acknowldege that this has been read.

4 more replies

I am using robocopy to perform a data migration and running into an issue with copy...I am also trying to copy permissions from NT 40 server to a NAS...I am using the correct switches and get hte following error "The security id structure is invalid" and nothing gets copied over.

If I leave the security switches out will copy data with no problem...
Any ideas??

A:Robocopy error message

Try running a chkdsk on the PC your copying from. It sounds like there may be a problem on that end.

Please note that all files have a security IDs assigned to it and usually a chkdsk will find this and fix it.

1 more replies

the 3 working files, basically it is a script that closes outlook and saves any drafts and will then backup user profile including .pst that would be otherwise locked.

My
problem is when I try and use %username% in the source or destination in the job file (.RCJ) it will give me a message along the lines of

invalid

rather
then just using the source i specify of user/%username%

The
file was sitting on my desktop (reason for the first part of directory)

This
works when i implement it in a .bat instead of a job file why does it stop working?

Bat
files have a 2000ish character limit and i do not want to run into issues when i get more and more specific with my exclusions

I
would love to be able to just throw it on users computers without changing anything and procced to use windows scheduler to run it , rather than edit the %username% to the correct one

More replies

The default copy switch of robocopy is /COPYAT if you don't specify any copy options. This is the code I'm using:

robocopy C:\ D:\Backup RAMDisk.img /copyall /R:5 /W:15 /V /log:\Users\Kevin\Desktop\robocopy_log.txt

The RAMDisk.img file that I'm copying is a compressed image file. Now with that syntax /COPYAT will be used which means that it will copy all attributes of that file. Whenever I run this, I successfully copy the file but it doesn't retain the compression attribute of that file.

What could be wrong with this? Both source and destination are NTFS-formatted.

A:Backing up files using Robocopy

Although compression is indicated via a file's attributes, I'm not sure if that particular property actually transfers with the copy, even with Robocopy. If you copy to a compressed folder (folder and contents) then I would think the copy would be compressed. And if that folder is not compreesed, files that are placed there will be uncompressed (even if you are copying a compressed file to that location).

9 more replies

Hi,

I'm new to using robocopy but I have used it for awhile with a couple of external drives to keep them in sync but using a simple command like:

robocopy g: f: /E /R:2

this copies everything from the g: drive to the f: drive including empty directories and tries 2 times for failures.

On my desktop which is a XP Pro machine as well, I've installed the Windows Resource Kit Tool which includes robocopy and am trying to do a similar thing to copy my "My Documents" directory on my c: drive to my k: drive which is an external drive on my mionet network. The copy does work fine but each time I run the robocopy command, a large number of the files get copied even though they haven't changed. I'm sure that I'm just missing something but I've tried adding things to the command line to not copy older files. Here's something that I have tried:

robocopy "C:\Documents and Settings\Administrator\My Documents" "K:\ImageThat\My Documents" /E /R:2 /XO /A-:A

each time that I execute this command, I get about 800 files that get copied and I don't understand why. Anyone see anything that I'm missing, or perhaps the way that I am understanding how robocopy works is the problem.

Bill

More replies

Hello, When my computer starts up it asks which OS would you like to run windows vista or windows vista heh...so I pick one of the two, however whatever one i pick it says running out of disk space. Now my mother in law borrowed the computer and said she put in a disk by mistake...

I think this is my windows install disk. does anyone know how to fix this problem?

Thanks in advance first time using this site so hold on with me lol

A:Solved: At startup it says which OS....Windows vista or windows vista...help

16 more replies

Hi, I just started using Robocopy to backup my files to my JBOD recently and I noticed that it does not copy anything in My Document folder. Here is the result log for Robocopy regarding the backup.

Quote:
------------------------------------------------------------------------------

Total Copied Skipped Mismatch FAILED Extras
Dirs : 4287 0 4287 0 0 0
Files : 34164 22831 11333 0 0 0
Bytes : 107.783 g 90.408 g 17.375 g 0 0 0
Times : 20:32:46 2:02:26 0:00:00 0:15:26

Ended : Mon Sep 08 02:58:21 2014

-------------------------------------------------------------------------------

Even though it says that it copied 22831 files the destination folder says it has not been modified at all.

The strange thing is that when I was checking back on the progress in the cmd window, it showed that it was copying files. The problem is I have no idea where those files went, the files that were supposedly copied aren't there at all. Here is the script I used to back up my files.

Quote:
robocopy F:\Anime G:\Anime /mir /copyall /np /tee /mt /log:"C:\Users\C.C\Desktop\my_backup_log.txt"

robocopy "E:\Disk Backups" "G:\Disk Backups" /mir /copyall /np /tee /mt /log+:"C:\Users\C.C\Desktop\my_backup_log.txt"

A:Robocopy not copying My Document files

CC mate I don't understand the Robocopy stuff and personally I use the Macrium for back up / imaging it is free and so easy to use.
Just a suggestion to get you out of strife
Imaging with free Macrium

9 more replies

We are building a script to copy data from a laptop to our servers using robocopy, but we dont want to backup movie files and pictures. is there a way to have robocopy exclude specific file types?

A:Robocopy Exclude file types

Hi,

/xf <FileName>[ ...]
Excludes files that match the specified names or paths. Note that FileName can include wildcard characters (* and ?).

e.g. robocopy <Source> <Destination> /xf *.jpgTracy Cai
TechNet Community Support

3 more replies

Apologies if the solution is found in another thread, but I have been unable to solve my problem so far.

I'm attempting to use Task Scheduler, to backup a folder of my projects to a 1 Tb USB drive via robocopy. I've been at this off and on for several days now, and I have had varying degrees of success. I work at a corporate company where IT can be strict. I have admin rights to my machine but I feel like I am still fairly restricted.

Currently, I have a .bat file, that when I run, it fails because I do not have backup and restore file user rights. Great. I get that. That is not my main problem. I know I need to change permissions some how. As far as I can tell, I have admin rights to all of the appropriate folders. I checked by right clicking, looking at security and seeing my user name in the groups and seeing that I have Full control, modify, read & execute, etc.

C:Users\"MyUserName"\_Projects - Looks like I have inherited full control rights

Side note, This may seem very noobish but I don't remember all of the folders being -Read Only- before. Not sure if this is a problem or if I did something to cause this.

Back to my main problem. At some point, I was able to run an iteration of my .bat file successfully, when I ran it manually. It copied all of the files I wanted to the correct USB drive. It was only once I tried to add it to Task Scheduler, the .bat file would fail. I... Read more

More replies

I have used ROBOCOPY to tranfer a large file from or to a USB drive and the destination Directory on both occassions has beeen chnaged to a hidden system directoiry, which could not be seen in Windows explorer or through command line access, even with the
"Show hidden and System files" set on in the view properties window.
The command executed was ROBOCOPY {source drive} {destination drive\folder} /MIR
The command echoed all the actions performed during the copy and displayed a successful copy command summary at the end.
To enable windows to see the directory I had  to either type the directory in the explorer address bar, or use the command prompt to change the attribute of the directory as follows "attrib -h -s d:\Films", whereupon the directory was visible in windows
explorer.
Can anyone suggest a way out if this wwithout the need to execute the attribb -h -s command after every ROBOCOPY command?

A:ROBOCOPY hides destination Directory

Hi,

Thanks for posting in Microsoft TechNet forums.

I just performed a test using above command without any problem. I am assuming it is due to the USB drive itself, it may be infected by viruses or malware. Regarding
this, I would like to provide the following suggestions:

1.
Use ROBOCOPY to copy files to the built-in hard drive to see if the issue occurs.
2.
Manually copy the files to the external USB drive to see if they are hidden.

3.
Update the security software and perform a full scan.

4.
Format the USB drive to remove suspicious files completely and perform ROBOCOPY again.

Best Regards
Dale Qiao
TechNet Subscriber Support
[email protected] remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?

25 more replies

I have a well-defined backup routine using RoboCopy, which I love.  But the last time I used it, it created a backup of all File History files as well - and they took up 120 GB of HDD storage that I need for other uses.
How can I prevent this?  I have no desire for File History's history of changes - I just want to copy the files as they are.  For me, that says RoboCopy.
Can you help?
Richard Tamir

More replies

I am backing up an entire drive to a external hard drive using Robocopy. Is it safe to use /mir on root drives? I've read somewhere that it's not recommended as it copies the hidden folders $RECYCLE.BIN and System Volume Information and may cause issues on the destination drive. Is there anything truth to this or is it just a myth? A:Is it safe to use Robocopy /mir on root drive? Hi, I am not familiar with robocopy, but you can try this link to help you with your issue: https://technet.microsoft.com/en-us/.../ee851678.aspx 8 more replies Answer Match 39.06% I have set up some RoboCopy tasks that run fine when run from the desktop link, but being forgetful I thought I would try to run them automatically using Task Scheduler. I followed the instructions in the tutorial and all appeared to be fine. However the tasks did not run so I checked them in Task Scheduler and last run stated 'Never'. I then chose to 'Run' them Task Scheduler and got the following dos report: (The smiley is ColonD at) REPORT: Simple Usage :: ROBOCOPY source destination /MIR source :: Source Directory (drive:\path or \\server\share\path). destination :: Destination Dir (drive:\path or \\server\share\path). /MIR :: Mirror a complete directory tree. For more usage information run ROBOCOPY /? **** /MIR can DELETE files as well as copy them ! C:\Windows\system32>robocopy "C:\Program Files (x86)\Microsoft Money 2005" "K:\M oney File Backups" /e /np /tee /mt:4 /log+:my_backup_log.txt 2014/01/03 10:25:38 ERROR 5 (0x00000005) Opening Log File C:\Windows\system32\my _backup_log.txt Access is denied. ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Fri Jan 03 10:25:38 2014 Source - C:\Program Files (x86)\Microsoft Money 2005\ Dest - K:\Money File Backups\ Files : Options : /T... Read more A:Using Task Scheduler fails to run RoboCopy. Code: 2014/01/03 10:25:38 ERROR 5 (0x00000005) Opening Log File C:\Windows\system32\my _backup_log.txt Access is denied. I think the basic problem is you are trying to save the logfile to a Windows protected folder. My suggestions is to use your robocopy bat file from your desktop....not C:\Windows\system32\ Try that and let us know what happens. BTW : you run robocopy /? from an elevated command prompt as explained in the tutorial - not from Windows search. 9 more replies Answer Match 39.06% Dear All, My batch file of robocopy is working fine. But when I tried to run it through task scheduler, none of the files transfer to the target location. @echo off echo +-----------------------------------------+ echo Database Export Utility for server echo +-----------------------------------------+ echo . ROBOCOPY E:\dp_dir \\192.168.30.28\inter_loc_dump /LOG:LOG_FILE.TXT Above script is working fine...but task scheduler is keep on running without any results. Please help me out. Regards, Ashish Kumar Mahanta A:robocopy script is not working through Scheduler Hi and Welcome to SevenForums, In the Scheduler, what settings have you set under General, Triggers and Actions? Regards, Jamie 9 more replies Answer Match 39.06% I'm trying to use robocopy for mirroring my most important files between two computers. Except for one issue, it works as expected. I'm trying to copy the complete "Documents" directory. Previously, this was called "My documents" and contained for example "My pictures". Now it doesn't, and I like that, but robocopy don't. Somehow it still searches for these directories, and of course can't find them. Seems robocopy needs a fix, or am I missing out on something here? A:Robocopy looking for my directories in the wrong place When I use robocopy, I use it in a text based batch file. So, as long as your paths are correct in the batch file it should go exactly where you tell it to. I haven't noticed any issues doing it this way with Windows 7. 4 more replies Answer Match 39.06% Our Windows 7 backup machine uses robocopy to differentially refresh a file server backup each evening. Unfortunately, users use Microsoft Outlook with PST files, which are locked by Outlook. I often noticed that when users had not closed Outlook by the time the backup reached their PST file, robocopy failed to update the file. I thought that was a non-issue since such cases only happen to about 2 users each day, but I had the surprise to discover that when robocopy fails to update, it deletes the outdated files (/MIR implies /purge). Do others get the same result? If so, can this be avoided? I did not find any option to ignore locked files in the documentation. I suppose this would not happen without /purge, but /purge is somewhat necessary (a simple directory rename could otherwise largely inflate space usage). More replies Answer Match 39.06% I am trying to use robocopy to backup files over our home network, from my daughters computer, to my backup drive. Unfortunately, she is sharing about 20 folders on her computer, and the only way I can get it to work is to write a separate command for each folder: robocopy "\\CHRISTINE\Music" "K:\Christine\Music" /mir /z robocopy "\\CHRISTINE\Photos" "K:\Christine\Photos" /mir /z robocopy "\\CHRISTINE\Video" "K:\Christine\Video" /mir /z etc... I tried entering just "\\CHRISTINE" but this results in a path not found error. Is there a way to get Robocopy to locate all the shared folders on her computer automatically (in case she shares new folders without my knowledge)? Thanks, Anthony A:Robocopy - All Folders on a network computer? 9 more replies Answer Match 39.06% I used a Robocopy script to restore data files from a backup disk to my main disk, including many ZIP files having various dates. The files copied as expected, preserving their source date and time correctly, except that the ZIP files were copied and given the current date and time rather than the source file date and time. I no longer have the exact command line I used for this, but generally program Robocopy something like: ROBOCOPY Z:\BackupFiles X:\ *.* /E /COPY:DAT /R:3 /V /FP /X /TS /TEE /NP I am running Win 7 64 bit. Some time ago, I followed the instructions on your forum page "How to Disable Windows Explorer Folder View of Zip Folders in Windows 7" This behavior suggests to me that perhaps Robocopy was interpreting the ZIP files as folders not files, and therefore was not adhering to /COPY:DAT. I undoubtedly did not specify /DCOPY:T. Has this behavior been seen and can it be prevented? Thank you A:Robocopy changed only ZIP file timestamps Doubt it was Robocopy but rather was Explorer doing something with the ZIP files what...I don't know. I personally don't care about preserving the multiple timestamp metadata, its all unreliable. 2 more replies Answer Match 39.06% In xp or 2003 robocopy log transfer speed at the end log file. How to get this in w7 or 2008 r2? thanks A:Robocopy transfer speed in log file Logging options /L : List only - don?t copy, timestamp or delete any files. /NP : No Progress - don?t display % copied. /LOG:file : Output status to LOG file (overwrite existing log). /UNILOG:file : Output status to Unicode Log file (overwrite) ## /LOG+:file : Output status to LOG file (append to existing log). /UNILOG+:file : Output status to Unicode Log file (append) ## /TS : Include Source file Time Stamps in the output. /FP : Include Full Pathname of files in the output. /NS : No Size - don?t log file sizes. /NC : No Class - don?t log file classes. /NFL : No File List - don?t log file names. /NDL : No Directory List - don?t log direct... Read more 5 more replies Answer Match 39.06% I have created a batch file for copying my Documents folder to an external hard drive: Quote: robocopy C:\Users\USERNAME\Documents J:\Desktop-Backup\Documents /copyall /e /LOG+:c:\users\USERNAME\documents\backuplog.txt The log file shows that it is backing up C:\users\USERNAME\documents\My Music and C:\users\USERNAME\documents\My Pictures. That's fine, because I want those backed up anyway, but when I go to J:\desktop-backup\Documents, the Music and Pictures folders aren't there (or anywhere else on the J: drive). I have "view hidden files and folders" turned on. It seems that the files are actually there because my Documents folder is only 700MB, yet several GB have been taken up on the J: drive. Anyone have any thoughts? Thanks. A:Robocopy backup for personal folders Hi, Can you re-write your post and use some punctuation and paragraphing to make it easier to read please? I'm having a hard time working out your robocopy command lines. See if this will help you: ROBOCOPY - Create Backup Script Regards, Golden 4 more replies Answer Match 39.06% Hi guys, I'm setting up an archive process to store old files on an external hard drive. The computer in question is running Windows 7 Pro 32bit. We have a server folder with 150,000+ files in it, most of which are pretty small (below 200k). I'm trying to use robocopy in a batch file to do this. It was working fine the other day, now all it does upon launch is sit there. It shows me all the options and whatnot, and also lists the number of files in the directory and the directory itself, but it never gets past that line. If I switch the destination to the local C drive, it eventually starts copying files. Is there something in my batch file that needs to change? Or could there be a problem with the external Western Digital drive that I'm using? Here is the one line batch file I have: Code: robocopy "\\cgifp01\Prepress\Public\ImportedPDF" "E:\OldFiles" *.* /R:2 /W:10 /MINAGE:15 /MOV /B /XJ /XF "blank_test.pdf" Any help would be great, thanks! Nate A:Robocopy launches and then hangs/just sits there Well for anyone else struggling with the same problem, here's how I got around it. I changed the batch file to copy from the network location to a temp folder on the external drive. Then I have another line that does a robocopy from the temp location to the actual archive folder. I have no idea why that works, but it does. It doesn't make any sense to me, since robocopy is still having to copy files into the external directory, but maybe since it's not copying from the network it works better. I have no idea. All I know is that it works now. Nate 1 more replies Answer Match 39.06% Hello all, I need to robocopy many files which starts with the same name for Example (Ari, Arit, Ariel, Arik, Aris) I tried robocopy source_file\ari*.* destination_file\ari*.* however it is nto working do someone can help with that. Thanks Orfi A:how to robocopy files with similar names Hi, Your syntax is a bit out. Try this: Code: robocopy E:\Test\ Ari* F:\Test\ /e /mir Regards, Golden 9 more replies Answer Match 39.06% I am doing a data migration from NT server to a NAS and using ROBOCOPY with correct switches....the folder and permissions copy over but no data is copied.....when I view the log files I see ACCESS DENIED errors....any ideas?? A:Problems with ROBOCOPY (Access Denied) Welcome to TSG.... From this site on Robocopy Robocopy does not run on Windows 95, or NT 3.5. (RoboCopy is a Unicode application). http://www.ss64.com/nt/robocopy.html 3 more replies Answer Match 39.06% Hello, I'm trying to do the equivalent of xcopy /t /e in robocopy. That is, I only want to copy the folder tree, not the files themselves. -Charlie A:using robocopy to copy folder structure only It looks like the /e /xf * switches are what I want. /e copies empty directories. /xf * tells it to exclude all files. 7 more replies Answer Match 39.06% I'm sync'ing a local directory with a network drive, and having problems with robocopy still taking too much time (and making too much work) because it sees time differences of 1 second as "newer". Is anyone aware of a remedy, or different method robust enough to trust with networked drives? TIA & cheerios from the Avalon Peninsula, Newfoundland :) A:robocopy & file time stamps Hi Mshaffer, File dates are kept in increments of 2 seconds. Look at a bunch and you will find that all have even values of seconds. Good Luck, Jim 4 more replies Answer Match 39.06% Hi I've just re-organised my hard drives and I've set up a batch routine to backup my files, using Robocopy. However, as I swapped my drives around, I've copied in the wrong direction. Robocopy has consequently deleted entire folders of important data. The data isn't in the recycle bin. What should I do to try and recover the data? Thanks A:Used Robocopy and deleted my files - how can I recover them? Is the partition unharmed and still visible in Explorer and Windows Disk Managment? If it's unharmed, I'd consider PhotoRec or Recuva to recover the files. Both are free. Ontrack Easy Recovery Professional is also said to be excellent, but I think you ultimately have to pay. Maybe$79?? It will show you the files it can recover, but won't let you actually recover them until you pay.

I'm assuming Robocopy doesn't have any type of "undo" capability.

5 more replies

Hi,
I'm wondering if anyone might be able to shed some light on why I am getting the following such errors when running a robocopy batch file (as administrator) which cause the backup script to stall (- albeit temporarily):

Quote:
2013/07/30 21:10:43 ERROR 5 (0x00000005) Copying File C:\Users\Tim\My Documents\Harey 8-128.jpg
Access is denied.

Waiting 30 seconds... Retrying...

2013/07/30 21:12:20 ERROR 5 (0x00000005) Copying File C:\Users\Tim\My Documents\TimsData\Year1.pdf
Access is denied.

Waiting 30 seconds... Retrying...

2013/07/30 21:15:27 ERROR 5 (0x00000005) Copying File C:\Users\Tim\My Documents\TimsData\Tim\Heddon's Mouth - Printable Walk - South West Coast Path.htm
Access is denied.

Waiting 30 seconds... Retrying...

I am using the following backup command:

Code:
robocopy "%srcPath%\My Documents" "%dstPath%\My Documents" /b /v /ts /fp /bytes /tee /e /dcopy:t /copy:dt /a-:sh /xf desktop.* /np /log+:%logPath%\mwk1log.txt
I realise that if I limit the retries and wait time from the defaults the stall time will be shortened and the file(s) skipped. However, that does not resolve the issue why robocopy is having a problem copying the file(s).

I have found that if the erroring files are moved from the source location to the desktop, the following errors arethen recorded in the log:

Quote:
2013/07/30 21:11:13 ERROR 2 (0x00000002) Copying File C:\Users\Tim\My Documents\Harey 8-128.jpg

A:Robocopy Backup - ERROR 5 (0x00000005)

Hi,

I have seen instances of a bug with the dcopy:t switch - try the script without that switch. You could also try the COPY:DATSOU switch, although I'm unclear if that copies the folder time stamps too.

Code:
robocopy "%srcPath%\My Documents" "%dstPath%\My Documents" /b /v /ts /fp /bytes /tee /e /copy:dt /a-:sh /xf desktop.* /np /log+:%logPath%\mwk1log.txt

9 more replies

hi,

I have a standard Windows 10 build and I'm using robocopy to backup my data to an external drive. The goal is just to capture all my data so if the PC fails/gets stolen etc. I can restore my data on to another PC.

I'm doing a backup of c:\users\ as this seems to capture all my data. Are there any other folders you think I should backup?

I've excluded the 'AppData' folder as this seems to have a lot of stuff which is not data. Is that OK or do you think that should be backed up? Are there any other folders you think I should skip?

More replies

I want to copy "App Launcher Gadget" folder to "AppLauncherSettings" folder. I have tried several ways and only get the files copied or invalid directory.

A:Cannot get Xcopy or Robocopy to copy folder

6 more replies

I've had some issues with mirroring my root directory to a backup folder on my netbook in that the backup folder becomes hidden and a system file after Robocopy has run (note the backup folder existed beforehand).
To stop this happening i believe i can include the switch /A-:SH which would remove the system and hidden attributes to the entire backup folder and all folders under it?

However if i wanted to maintain the hidden attribute on a particular folder could i add /A+:H "//netbook/C Drive/Backup/hidden_folder" to the command line as well?
I'm assuming this would have the same affect as attrib +h "//netbook/C Drive/Backup/hidden_folder" ?

I currrently have:-
robocopy /MIR d:\ "//netbook\C Drive\Backup" /XA:S /XD d:\windowsimage d:\downloads d:\bittorrents "d:\bittorrents completed"

I'm intending to change it to:-
robocopy /MIR d:\ "//netbook\C Drive\Backup" /XA:S /A-:SH /A+:H "//netbook/C Drive/Backup/hidden_folder" /XD d:\windowsimage d:\downloads d:\bittorrents "d:\bittorrents completed"

(making all folders unhidden and non-system but add the hidden attribute only to the hidden_folder folder).
Would you say this is correct and will produce my required results?

A:Robocopy - adding attributes to specific folders

Quote: Originally Posted by duckson

[FONT=Arial][SIZE=2]I've had some issues with mirroring my root directory to a backup folder on my netbook in that the backup folder becomes hidden

in my opinion it is strange because you don't use /COPY: or /COPYALL switchers

Quote:
robocopy /MIR d:\ "//netbook\C Drive\Backup" /XA:S /A-:SH /A+:H "//netbook/C Drive/Backup/hidden_folder" /XD d:\windowsimage d:\downloads d:\bittorrents "d:\bittorrents completed"

In my opinion it won't work.You can't use /A+:,/A-: switchers for only particular objects.You can use it only for all copied objects.
In my opinion it will be appriopriate -unfortunatelly it require two commands:

robocopy /MIR d:\ "//netbook\C Drive\Backup" /XA:S /A-:SH /XD d:\windowsimage d:\downloads d:\bittorrents "d:\bittorrents completed"
attrib +h "//netbook/C Drive/Backup/hidden_folder"

other Robocopy
Robocopy - Wikipedia, the free encyclopedia

1 more replies

I have a Robocopy batch file that works wonderfully when copying from Windows to a USB, NAS or server share.  I recently tried to use my Microsoft OneDrive as the target but could not get it working.  I mapped a drive using the WebDav address.
This works fine and using Windows Explorer I can create folders, etc.  When I try to use Robocopy to copy files from my Win7 PC to my OneDrive mapped drive I get Error 2.  After some testing I am finding that Robocopy will work if the folders
are already in place but if it needs to create a folder it will error.  So it seems as though Robocopy is unable to create the folders it needs to when using a WebDav mapped drive.  Why would this be?  I can create folders in the mapped drive
using command line such as "V:\md testfolder".

More replies

I am wanting to periodically copy files from one pc to another pc across the lan.
I was reading about robocopy, and wikipedia says there is a gui.

Anyone have a link to something I can use?

A:automated scheduled file copy? robocopy gui?

file lite move?
FileMove Lite - SDW Software

What I want to do is move the files, not copy. So they will be gone from one PC an be on another.

7 more replies