JP Vossen via plug on 27 May 2023 11:35:47 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Backing up Windows to Linux |
On 5/26/23 06:03 PM, Mike Leone wrote:
Well, my default command is this, I just edited it for the relevant bits of the post: RoboCopy %Source% %Destination% /MIR /XA:SH /MT:20 /E /ZB /COPYALL /R:1 /W:1 /NS /NC /NP /NFL /NDL /LOG+:%LogFile%
OK, that's: /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE). /XA:[RASHCNETO] :: eXclude files with any of the given Attributes set. /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. /NS :: No Size - don't log file sizes. /NC :: No Class - don't log file classes. /NP :: No Progress - don't display percentage copied. /NFL :: No File List - don't log file names. /NDL :: No Directory List - don't log directory names. /LOG+:file :: output status to LOG file (append to existing log). I assume `/XA:SH` is System and Hidden? Why omit those? Also, I just tried `/ZB` and it was a total fail, because my user doesn't have admin rights. Sigh. $WORK Windows laptops are very locked down, which I agree is mostly a Good Thing, though it is tedious sometimes. I *could* get admin for this, but I'm not going to, it's too painful. I got: ``` ERROR : You do not have the Backup and Restore Files user rights. ***** You need these to perform Backup copies (/B or /ZB). ``` 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