Moving the 'My Documents' folder (and others) to a different hard disk

Page 9 of 10 FirstFirst ... 78910 LastLast

  1. Posts : 889
    W10-2009 19042.1348
       #81

    Try3 said:
    - Outlook can give even more serious problems if you attempt to copy to a network location while it's running.
    - - Whilst a local location copy might just get refused, network locations have been known to delete the previous copy there before refusing yet without even showing you anything in the log to warn you.
    - - The first thing you know about it is when you go to the network to retrieve your backup and find that there is nothing there [not even your previous backed up copy].
    I can confirm that Outlook just blocks (in my case) xcopy from doing its job, and also that xcopy helpfully deletes the previous backup first, so you do indeed end up with nothing in the backup location (in my case an internal drive, not a network location). So I have had to add a command to shut Outlook down before the backup runs - that works.
      My Computer


  2. Posts : 11,383
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #82

    Matthew Wai said:
    Code:
    @echo off
    Robocopy "E:" "F:\# Reserved" /L /Ts /Mir /XF "desktop.ini" "Thumbs.db" 
    pause
    Matthew,

    How does it perform if you include the /XA:SH switch to skip hidden & system files?

    If it doesn't behave then it means that, for all practicable purposes, the /L switch is worse than useless.

    Denis
      My Computer


  3. Posts : 11,383
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #83

    mngerhold said:
    I can confirm that Outlook just blocks (in my case) xcopy from doing its job, and also that xcopy helpfully deletes the previous backup first, so you do indeed end up with nothing in the backup location (in my case an internal drive, not a network location). So I have had to add a command to shut Outlook down before the backup runs - that works.
    Martin,

    Thanks for that. It has been so many years since I stopped trying to copy while Outlook was open that I seem to have forgotten some details. I thought that it was just network locations that suffered from the backup being deleted but this obviously affects all such copies.
    - I have found my notes from 2013.
    - - For both local & network backups, the backup copy does indeed get deleted before RoboCopy decides it cannot backup the new version.
    - - The added problem for network backups is that despite retry & wait being set up within the RoboCopy switches the script will hang if it tries to copy an open .pst file & cannot be restarted even if Outlook is then closed.

    Depending on the circumstances, you might consider using the fact of Outlook running to skip the folder containing your Outlook pst files. I use a mixture of both. For some procedures I stop if Outlook is running but for others I just skip the folder my .pst files are in.

    I have never witnessed a .pst file being corrupted by an attempt to copy it but the warning about it [in 2012] had come from a user that I knew to be highly competent.

    Denis
      My Computer


  4. Posts : 16,014
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #84

    Denis,

    Try3 said:
    - Some others create hidden temporary files and they are skipped using the /XA:SH switch that you have already included.
    Correct, I did include that switch.

    Although I did include that switch, as I said in my previous post, that temporary entry of 1 in the directory was added to log file totals summary, even though it was excluded in the log under the files that were copied!

    To be on the safe side anyway, I will only run this after I have made sure that there are NO programs running from ANY of the source directories.
      My Computer


  5. Posts : 7,456
    Windows 10 Home 20H2
       #85

    Try3 said:
    How does it perform if you include the /XA:SH switch to skip hidden & system files?
    (Testing 3: in a CMD script)
    Code:
    @echo off
    Robocopy "E:" "F:\# Reserved" /L /Ts /Mir /XA:SH /XF "desktop.ini" "Thumbs.db" 
    pause
    Results:
    Code:
                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         8         7         1         0         0       351
       Files :        17        17         0         0         0      2073
       Bytes :    40.1 k    40.1 k         0         0         0  195.29 m
       Times :   0:00:03   0:00:00                       0:00:00   0:00:03
       Ended : Sunday, 12 July 2020 7:54:35 PM

    (Testing 4: in a CMD window)
    Code:
    Robocopy "E:" "F:\# Reserved" /L /Ts /Mir /XA:SH /XF "desktop.ini" "Thumbs.db"
    Results:
    Code:
                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :       353         0       353         0         0         0
       Files :      2082         0      2082         0         0         1
       Bytes :  195.32 m         0  195.32 m         0         0        77
       Times :   0:00:01   0:00:00                       0:00:00   0:00:01
       Ended : Sunday, 12 July 2020 7:54:40 PM
    Again, the results of the CMD script are incorrect.
      My Computer


  6. Posts : 11,383
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #86

    Matthew,

    So you have indeed proved that, for all practicable purposes, the /L switch is worse than useless.

    Well done.

    Denis
      My Computer


  7. Posts : 16,014
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #87

    Martin,

    mngerhold said:
    I have not studied it much, but my recent reading suggests you won't get threaded (multi-file) copying without the /MT switch - that default of 8 just means that /MT is equivalent to /MT:8, I think.
    Thanks.

    As this only affects my laptop, which as I have mentioned is only really used for the Internet, batch scripts, and a few other things, I am not overly concerned. I can manually backup in about 5 minutes, it is not a problem. It all works on my Desktop PC which is the priority anyway.
      My Computer


  8. Posts : 11,383
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #88

    mngerhold said:
    I have not studied it much, but my recent reading suggests you won't get threaded (multi-file) copying without the /MT switch - that default of 8 just means that /MT is equivalent to /MT:8, I think.
    Martin,

    I agree.

    It is explained in RoboCopy - MSDocs
    Moving the 'My Documents' folder (and others) to a different hard disk-robocopy-mt-switch-default.png

    Denis
      My Computer


  9. Posts : 889
    W10-2009 19042.1348
       #89

    Try3 said:
    Depending on the circumstances, you might consider using the fact of Outlook running to skip the folder containing your Outlook pst files.
    I decided to always shut Outlook down, with a vb script launched from within the backup batch file - my backup is scheduled to run at night, so I don't care. I suppose one day I will run the backup manually whilst in the middle of an email edit, and then regret that 'design' decision, but until then...
      My Computer


  10. Posts : 13,934
    Windows 10 Pro X64 21H1 19043.1503
       #90

    Using /tee and /log (instead of > to redirect output) works great. You see the Robocopy process as it runs and you get a record of the process that matches what you see.

    Code:
    C:\Users\ztruk>RoboCopy ""C:\Users\ztruk\Desktop\SetupDiagLogs"" "F:\Target Folder" /S /R:10 /MT:1 /DCOPY:DAT /XA:SH /MIR /tee /log:"%userprofile%\desktop\TestResults.Log" Log File : C:\Users\ztruk\desktop\TestResults.Log ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Sunday, July 12, 2020 02:34:51 PM Source : C:\Users\ztruk\Desktop\SetupDiagLogs\ Dest : F:\Target Folder\ Files : *.* Options : *.* /TEE /S /E /DCOPY:DAT /COPY:DAT /PURGE /MIR /XA:SH /MT:1 /R:10 /W:30 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 1 1 1 0 0 0 Files : 22 0 22 0 0 0 Bytes : 216.33 m 0 216.33 m 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Ended : Sunday, July 12, 2020 02:34:51 PM
    This is what the log files looks like:
    Code:
    -------------------------------------------------------------------------------
       ROBOCOPY     ::     Robust File Copy for Windows                              
    -------------------------------------------------------------------------------
    
      Started : Sunday, July 12, 2020 02:34:51 PM
       Source : C:\Users\ztruk\Desktop\SetupDiagLogs\
         Dest : F:\Target Folder\
    
        Files : *.*
            
      Options : *.* /TEE /S /E /DCOPY:DAT /COPY:DAT /PURGE /MIR /XA:SH /MT:1 /R:10 /W:30 
    
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    
                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         1         1         1         0         0         0
       Files :        22         0        22         0         0         0
       Bytes :  216.33 m         0  216.33 m         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00
       Ended : Sunday, July 12, 2020 02:34:51 PM
      My Computers


 

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

Designer Media Ltd
All times are GMT -5. The time now is 12:49.
Find Us




Windows 10 Forums