JP Vossen via plug on 26 May 2023 15:01:04 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Backing up Windows to Linux


On 5/26/23 05:17 PM, Mike Leone wrote:
...
Have you tried these options?

RoboCopy %Source% %Destination% /MT:20 /E /ZB /COPYALL /R:1 /W:1

that usually gets most everything I've ever tried copying. Then again, copying registry hives is very different from copying "regular" files ... the "/ZB" (copy in restartable abd backup mode" can be really helpful.

Interesting.  /ZB has thus far escaped me, I'll give it a try.

From above:
/MT[:n] :: Do multi-threaded copies with n threads (default 8).
   n must be at least 1 and not greater than 128.
   This option is incompatible with the /IPG and /EFSRAW options.
   Redirect output using /LOG option for better performance.
/E :: copy subdirectories, including Empty ones.
/ZB :: use restartable mode; if access denied use Backup mode.
/COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU).
/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.


What I use, with other flags as needed on a per command basis:
set RCOPTIONS1=/MIR /Z /R:2 /W:5
set RCOPTIONS2=/NFL /NDL

REM /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
REM		Requires BOTH /NFL /NDL to make it quiet!
REM /Z :: copy files in restartable mode.
REM /R:n :: number of Retries on failed copies: default 1 million.
REM /W:n :: Wait time between retries: default is 30 seconds.
REM /NFL : No File List - don't log file names.
REM /NDL : No Directory List - don't log directory names.
REM /J :: copy using unbuffered I/O (recommended for large files).

Thanks,
JP
--  -------------------------------------------------------------------
JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug