Robocopy on Windows 203 stops w/o an error

Posted on 2011-05-12
Last Modified: 2013-12-01
This robocopy script was running perfectly for two weeks until I changed it from copy to move. It stopped in the middle of the 1st run without any error message. It copied adout 10 of the 20 files in the root and then stopped. Why?

echo %date:~-4,4%
echo %date:~-7,2%
echo %date:~-10,2%
set yr=%date:~-4,4%
set mo=%date:~-7,2%
set dy=date:~-10,2%
set f2=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%
echo %f2%
set fn=robo-%f2%.txt
robocopy.exe f:\ x:\ *.* /E /SEC /NP /MOVE /XD "F:\Recycler" "F:\System Volume Information" /XF "f:\Changer.cfg" "f:\Folder.cfg" /Log:c:\Robo-Logs\%fn%
Question by:Tony Giangreco
    LVL 9

    Expert Comment

    Wild stab in the dark here which we had a few years ago moving files and folders using Robo Copy.
    It couldnt move folders that were,
    Locked out to everyone.
    So as domain admin we had to manually take ownership again of these troublesome folders.
    It struggled with folders that had more than the 256 character limit down through all the top level folders to the very last file.
    Apart from that check your logs or turn on R Copy logging and try a again
    LVL 25

    Author Comment

    by:Tony Giangreco
    I'm not trying to move folders and take ownership of them. These are Backup Exec files that I want to move to external storage after the backup completes.
    LVL 8

    Assisted Solution

    Why not create a bacth file that copies the files from the original destination to the new destination, then deletes the files from the original destination?
    LVL 59

    Expert Comment

    by:Kevin Cross
    Please give credit to previous poster, but I agree.  In the past when using Backup Exec there was an 'post backup job command' you could set.  I didn't trust my memory, so I did a quick search to verify I wasn't recalling some other backup program, but here is a reference on creating pre and post job commands:

    Following this (or using the article relevant to your version), you could do as the Expert above said and in a post job command execute the batch file that does the copy and cleanup of backup files.  We do that currently for SQL backups, not using Backup Exec, but same principal as we are copying .BAK files to an external media and then deleting to reclaim disk.
    LVL 59

    Accepted Solution

    Regarding RoboCopy, what was written to logs c:\Robo-Logs\ ?
    You may want to look at NTFS permissions of the account running the Backup Exec/RoboCopy.  It is possible it has rights to read all the content to copy/backup; however, move requires DELETE permissions.  If it copied some, you may be looking at a folder or set of files that have different/special permissions.  Have seen that occassionally due to Windows OWNER default permissions.  I usually go in and remove that permissions and set specific NTFS rights and ownership to Administrators.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
    This is about my first experience with programming Arduino.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    The viewer will learn how to back up in Windows 7 with native tools. This should be the first step. Third party tools should also be used. Access the Backup and Restore options: Click on the windows 7 start ball in the lower left corner of the scree…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now