ROBOCOPY - Create Backup Script

Page 23 of 32 FirstFirst ... 132122232425 ... LastLast

  1. Posts : 7
    W7 64bit
       #220

    Robocopy


    Great!! Now is working perfectly in both ways. Manual and Task Scheduler. Many many thanks.
      My Computer


  2. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #221

    My pleasure - thanks for feedback
      My Computer


  3. Posts : 2
    windows 8.1 64
       #222

    Dear All I have a simple script to backup a folder that I work on to a USB HD. I have another HD that Has over 40 folder and looking for a script that will copy all the folders to another HD.

    Is this the only way?

    robocopy E:\folderA G:\folderA
    robocopy E:\folderB G:\folderB and so on or is there another way.

    any help is welcome

    Reagards
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #223

    mkakat said:
    Dear All I have a simple script to backup a folder that I work on to a USB HD. I have another HD that Has over 40 folder and looking for a script that will copy all the folders to another HD.

    Is this the only way?

    robocopy E:\folderA G:\folderA
    robocopy E:\folderB G:\folderB and so on or is there another way.

    any help is welcome

    Reagards
    You want to copy ALL folders from E to G (same structure)?
    Also all files in E: ?

    You want to keep all permissions, readonly attributes, creationdat/modifictaondates, file owner.... etc?
      My Computer


  5. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #224

    mkakat said:
    Dear All I have a simple script to backup a folder that I work on to a USB HD. I have another HD that Has over 40 folder and looking for a script that will copy all the folders to another HD.

    Is this the only way?

    robocopy E:\folderA G:\folderA
    robocopy E:\folderB G:\folderB and so on or is there another way.

    any help is welcome

    Reagards
    Code:
     
    robocopy e:\  g:\  /e /b /efsraw /copyall /dcopy:t /r:2 /w:5 /xj /xd "System Volume Information" /XF pagefile.sys hiberfil.sys
      My Computer


  6. Posts : 2
    windows 8.1 64
       #225

    Hi Kaktussoft

    Thank you very much for the script it works exactly as I wanted it to.

    Thanks again and keep the good work up.

    Regards
      My Computer


  7. Posts : 294
    Windows 7 Ultimate x64 SP1
       #226

    Let me know if I should start a new thread for this.

    In regards to the multithread switch MT[:n] I'm using a Intel 2600K so naturally I would set it to 8 threads (I know /MT is 8 thread by default) but Robocopy allows for up to 128 threads. What are the advantages/disadvantages of using more threads? Will it copy faster or slower? All my transfers are from one physical hdd to another.

    If I use the multithread switch will I increase fragmentation on the source drive? or does Robocopy pre-allocate files before copying?


    *UPDATE*

    After experimenting with the /MT swtich I noticed 2 things/bugs:

    1) 'Date Modified' timestamp for nested directories is not copied over if /MT switch is used. Lets say you have folder A and within folder A you have folders 1, 2, 3, 4 and 5. If /MT switch is used 'Date Modified' timestamp will not be copied over for folders 1 through 5, however 'Date Created' will be copied over.

    2) Speed in Bytes/sec. and MegaBytes/min. will not be displayed/reported when job is complete.
    Last edited by 0pTicaL; 10 Feb 2014 at 22:28.
      My Computer


  8. Posts : 5
    Windows 7 Home Premium 32 bit
       #227

    Looking to RoboCopy from cell phone


    I decided to use RoboCopy to backup my cell phone. I have been using it to backup several PCs and servers for about a year with excellent results.

    The issue - when I attach my phone to a PC with a USB cable, I see it listed in Windows Explorer along with the hard drives and DVD on the PC. It's labeled "SPH-L710".

    I use the DiskPart command as part of my RoboCopy script to show me the drives on the PC. However, DiskPart doesn't show the phone as a hard drive (or anything else).

    I looked in Explorer and sure enough there is no drive letter associated with the phone.

    Question is... How do I reference the phone as a location to copy from ??
      My Computer


  9. Posts : 53,363
    Windows 10 Home x64
       #228

    epoc said:
    I decided to use RoboCopy to backup my cell phone. I have been using it to backup several PCs and servers for about a year with excellent results.

    The issue - when I attach my phone to a PC with a USB cable, I see it listed in Windows Explorer along with the hard drives and DVD on the PC. It's labeled "SPH-L710".

    I use the DiskPart command as part of my RoboCopy script to show me the drives on the PC. However, DiskPart doesn't show the phone as a hard drive (or anything else).

    I looked in Explorer and sure enough there is no drive letter associated with the phone.

    Question is... How do I reference the phone as a location to copy from ??
    Have a look here:

    The Phone is not mounted as a standard USB device, so it isn't assigned a drive letter. Instead it is being mounted as a MTP device. Microsoft is being "user friendly" in the Explorer shell by giving it a path, and you can browse the folders etc. But I think it is only being seen by Explorer, and it isn't recognized as a storage device at the actual OS level. So the robocopy command doesn't see it.
    2nd post HERE

    A Guy
      My Computer


  10. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #229

    epoc said:
    I decided to use RoboCopy to backup my cell phone. I have been using it to backup several PCs and servers for about a year with excellent results.
    ...
    I looked in Explorer and sure enough there is no drive letter associated with the phone.
    RoboCopy needs both source and target paths and cannot be used if either of them has no valid path available.

    Not knowing what phone you have and not knowing other than Windows / Symbian / Meego / Maemo phones, I cannot be sure if your phone offers this option, but for instance my older Nokia N900 phone lets me select the mode when I connect it to PC, either a PC Suite Mode (no drive letter) or Mass Storage Mode (phone acts as normal external USB storage with drive letter).

    My Windows Phones always get a drive letter automatically.
      My Computer


 
Page 23 of 32 FirstFirst ... 132122232425 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:43.
Find Us