+ Post New Thread
Results 1 to 11 of 11
Scripts Thread, batch copy has error insufficient disk space but.. in Coding and Web Development; Hi All, My backups are p-laying up a bit at the moment so just for extra security I have set ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,526
    Thank Post
    506
    Thanked 54 Times in 48 Posts
    Rep Power
    28

    batch copy has error insufficient disk space but..

    Hi All,
    My backups are p-laying up a bit at the moment so just for extra security I have set up a number of batch files to xcopy users data across to another HD on another machine.
    That I can manage with xcopy BUT I am geting an error when it gets to certain users(always the same one) telling me there is insufficient disk space when I do have about 3 TB spare.
    Having looked at these users it is because of a saved link in my settings/favourites!
    If I move that link and try again it works?

    my question is can I bypass this error with either an alternative to xcopy or with some setting within xcopy?

    Thanks

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,707
    Thank Post
    829
    Thanked 2,571 Times in 2,188 Posts
    Blog Entries
    9
    Rep Power
    731
    Are you adding the /B switch to make it run in backup mode if file copy fails using the normal methods?

  3. Thanks to SYNACK from:

    reggiep (27th February 2009)

  4. #3
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,526
    Thank Post
    506
    Thanked 54 Times in 48 Posts
    Rep Power
    28
    Quote Originally Posted by SYNACK View Post
    Are you adding the /B switch to make it run in backup mode if file copy fails using the normal methods?
    Er no, It is about the only switch I am not using!

    I'm just running a test with an exclude switch, once that is finished I shall investigate.

    Thanks

  5. #4

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,707
    Thank Post
    829
    Thanked 2,571 Times in 2,188 Posts
    Blog Entries
    9
    Rep Power
    731
    Come to think of it are there any quotas or filetype restrictions on the destination drive, if you are copying with full file ownership this could be the issue as well/insteaf.
    Last edited by SYNACK; 27th February 2009 at 09:09 AM.

  6. #5
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,526
    Thank Post
    506
    Thanked 54 Times in 48 Posts
    Rep Power
    28
    It's not liking the /B switch - Invalid switch!

  7. #6

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,707
    Thank Post
    829
    Thanked 2,571 Times in 2,188 Posts
    Blog Entries
    9
    Rep Power
    731
    Quote Originally Posted by reggiep View Post
    It's not liking the /B switch - Invalid switch!
    Oops, my bad. I was thinking of robocopy rather than xcopy. A vastly superior app. TBH I would suggest using it instead as it is likely to be faster and has builtin support (when using the /B switch) for volume shadow copy so that you can even backup locked or in use files.

    [ame=http://en.wikipedia.org/wiki/Robocopy]robocopy - Wikipedia, the free encyclopedia[/ame]
    http://www.microsoft.com/downloads/d...displaylang=en

  8. #7

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,144
    Thank Post
    113
    Thanked 518 Times in 447 Posts
    Blog Entries
    2
    Rep Power
    121
    I'd agree with using robocopy instead of xcopy. The newer versions of xcopy have more useful bits but robocopy is still streets ahead!

    If you need to stay with xcopy then add the /c switch - this continues if there's an error (what I suspect is happening is that it's somehow trying to download the linked to web site which could take a while and will fill your disc ...)

    With robocopy, I would add /mir /sec /w:1 /r:1 /b /np /log:c:\temp\copy.log switches (mirror from source to destination; copy security; wait 1 second if an error occurs; retry once only; run in backup mode; don't show progress per file; write a log)

  9. #8
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,526
    Thank Post
    506
    Thanked 54 Times in 48 Posts
    Rep Power
    28
    Cheers guys, I'll look into robocopy, never heard of it before!

  10. #9

    Join Date
    Mar 2008
    Location
    UK
    Posts
    54
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    13
    Hi guys,

    I know this thread is massively old but just for anyone else that stumbles across it from Google (as I just have), check out RichCopy too. It's a newer copy tool from Microsoft, the main advantage of it being multi-threaded. I had trouble using xcopy to copy some files between servers, I tried robocopy as suggested by this thread and that couldn't seem to run at all with the paths I was using. RichCopy, however, seems be doing fine at the moment. I'm using an admin share in case anyone stumbles into the same problem, ie. copying from \\server\e$\blahblah to F:\blahblah.

    Just thought it might be useful to future readers.

  11. #10


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,136
    Thank Post
    204
    Thanked 2,395 Times in 1,773 Posts
    Rep Power
    705
    Quote Originally Posted by Shuriken1 View Post
    It's a newer copy tool from Microsoft, the main advantage of it being multi-threaded.
    RoboCopy is now multi-threaded too (using the /MT switch). The default is 8 threads, but you can go all the way up to 128. RichCopy looks promising, but development on it appears to have stopped and it is still quite buggy (especially when it comes to preserving ACLs between source and destination - I was bitten by that bug ).

    Another alternative is FastCopy. It's open source and actually really good. It has both a GUI and CLI (in a single EXE) and has lots of really useful features.

    • It supports UNICODE and over MAX_PATH (260 byte) file pathnames.
    • It automatically selects different methods according to whether Source and DestDir are in the same or different HDD.

      Diff HDD - Reading and writing are processed respectively in parallel by separate threads.
      Same HDD - Reading is processed until the big buffer fills. When the big buffer filled, writing is started and processed in bulk.

      Because reading/writing are processed with no OS cache at all, other applications don't easily become slow.

    • It can achieve reading/writing performance that is close to device limit.
    • Include/Exclude Filter (UNIX wildcard style) can be specified.
    • It runs fast and does not hog resources, because MFC is not used. (Designed using Win32 API and C Runtime only).
    • Verification of written file data using MD5 or SHA-1 checksums.
    • Wipe & Delete (prevent deleted files reviving) - Rename filename and Overwrite random data before deleting. Alternate stream isn't overwritten. If NSA method is checked in setting dialog, Overwriting Random data process runs two times, and overwriting NULL data process runs once.
    • Speed Control (Full Speed, Auto Slow, 90% > 10%, Suspend) - If you feel it is hogging resources, it is recommended to set to "Auto Slow" (if it detects mouse moving/active window changing (and fastcopy window isn't foreground), it is slowed down). If "Full Speed" isn't selected, low process priority class is set.

  12. #11

    Join Date
    Mar 2008
    Location
    UK
    Posts
    54
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    13
    Yeah, you're right Arthur. I've just left work and have robocopy doing the last folder copy for me overnight. RichCopy was quicker and it was preserving the ACLs but not the ownerships, I couldn't be bothered to work it out so I went back to Robocopy and it worked first time. Must have been making a silly mistake earlier. Anyway, Robocopy seems the way to go. Especially, as you say, it can multi-thread on Win7/Server2008 now (seems to be single thread still on Win 2003). Seems to be the way to go though.

SHARE:
+ Post New Thread

Similar Threads

  1. Batch file to copy user profile
    By googlemad in forum Windows
    Replies: 2
    Last Post: 15th October 2010, 11:08 PM
  2. How much disk space?
    By Stuart_C in forum Windows
    Replies: 8
    Last Post: 13th November 2008, 08:37 PM
  3. ntbackup "insufficient disk space"
    By TechSupp in forum Windows
    Replies: 1
    Last Post: 4th October 2008, 09:40 PM
  4. APC Powerchute - Insufficient runtime error
    By andy_d in forum Windows
    Replies: 11
    Last Post: 7th June 2008, 09:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •