Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 48:46:57 |
Calls: | 632 |
Files: | 1,187 |
D/L today: |
3 files (4,227K bytes) |
Messages: | 177,138 |
When I try to use RoboCopy in Windows 10, I get the following error
message.
Can anyone make any suggestions for fixing whatever is wrong with it?
Microsoft Windows [Version 10.0.19045.6332]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Dell>robocopy e:\dropbox c:\users\dell\dropbox /E /XO /ZB
------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------
Started : Wednesday, 01 October 2025 17:03:09
Source = e:\dropbox\
Dest : c:\users\dell\dropbox\
Files : *.*
Options : *.* /S /E /DCOPY:DA /COPY:DAT /ZB /XO /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
When I try to use RoboCopy in Windows 10, I get the following error
message.
Can anyone make any suggestions for fixing whatever is wrong with it?
Microsoft Windows [Version 10.0.19045.6332]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Dell>robocopy e:\dropbox c:\users\dell\dropbox /E /XO /ZB
------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------
Started : Wednesday, 01 October 2025 17:03:09
Source = e:\dropbox\
Dest : c:\users\dell\dropbox\
Files : *.*
vssadmin
Options : *.* /S /E /DCOPY:DA /COPY:DAT /ZB /XO /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
On Wed, 10/1/2025 11:20 AM, Steve Hayes wrote:
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
Have you tried running this from an Administrator command prompt window
or from an Administrator Powershell window ?
You would have the SeBackupPrivilege if you did that.
*******
https://superuser.com/questions/976864/what-is-backup-mode-in-robocopy
whoami /user /priv # Run this command to determine your super-powers
# You might be "Steve" with no SeBackupPrivilege.
# Don't let the State field bother you...
That command will indicate whether you are running as Steve (unelevated)
or as a member of the Administrators Group (elevated). People who belong
to Administrators Group have
SeBackupPrivilege # These are the Backup Operator permissions when
SeRestorePrivilege # granted to Limited Users. The Administrator has these.
SeImpersonatePrivilege # Ability to acquire the TrustedInstaller token, a main usage
and those can overcome permissions issues to some extent when--
copying things which are well protected.
A folder such as "C:\System Volume Information" , I doubt even
an Administrator can copy that. It is not going to let me do that.
There are things in that folder, dangerous to system integrity, which
is why raw access is hardly a good idea. There are non-dangerous things
in there and dangerous things in there. The dangerous things are unlikely
to be visibie (but I broke it once, from Linux, while in there).
robocopy "C:\System Volume Information" "D:\System Volume Information" /E /XO /ZB # Should not work (I won't test)
robocopy "C:\Program Files" "D:\Program Files" /E /XO /ZB # This worked 100% OK as Administrator
robocopy C: D: pagefile.sys /ZB # Even as Administrator, is "skipped" :-)
Generally speaking, you should not expect to be able to copy
the entire C: drive at the file level. On Linux, they use rsync
and their situation is different with respect to file level efforts.
Windows can define permissions that are very hard to deal with.
You can log activities in robocopy, using these, makes later record keeping easier:
/tee /v /log:robocopy.log
I trust your removal of the timestamp preservation argument is on purpose, >causing today's date stamp on the files going into dropbox, and thus, the >Dropbox software is going to back all of those up.
Paul
On Wed, 1 Oct 2025 16:17:53 -0400, Paul <nospam@needed.invalid> wrote:
On Wed, 10/1/2025 11:20 AM, Steve Hayes wrote:
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
Have you tried running this from an Administrator command prompt window
or from an Administrator Powershell window ?
You would have the SeBackupPrivilege if you did that.
*******
https://superuser.com/questions/976864/what-is-backup-mode-in-robocopy
whoami /user /priv # Run this command to determine your super-powers
# You might be "Steve" with no SeBackupPrivilege.
# Don't let the State field bother you... >>
That command will indicate whether you are running as Steve (unelevated)
or as a member of the Administrators Group (elevated). People who belong
to Administrators Group have
SeBackupPrivilege # These are the Backup Operator permissions when >> SeRestorePrivilege # granted to Limited Users. The Administrator has these.
SeImpersonatePrivilege # Ability to acquire the TrustedInstaller token, a main usage
Thanks very much for that.
Is there a way of setting those permanently?
I want to run the Robocopy command from a batch file to copy all new
or changed files from the source directory to the destination
directory and all subsirectories.
psexec64 -hsi cmd <=== since this is at Admin level,<=== psexecve can be installed in System32
whoami /user /priv
I want to run the Robocopy command from a batch file to copy all new
or changed files from the source directory to the destination
directory and all subdirectories.
C:\Users\Dell>robocopy e:\dropbox c:\users\dell\dropbox /E /XO /ZB
....
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
C:\Users\Dell>robocopy e:\dropbox c:\users\dell\dropbox /E /XO /ZB
When I try to use RoboCopy in Windows 10, I get the following error
message.
Can anyone make any suggestions for fixing whatever is wrong with it?
Microsoft Windows [Version 10.0.19045.6332]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Dell>robocopy e:\dropbox c:\users\dell\dropbox /E /XO /ZB
------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
------------------------------------------------------------------------------
Started : Wednesday, 01 October 2025 17:03:09
Source = e:\dropbox\
Dest : c:\users\dell\dropbox\
Files : *.*
Options : *.* /S /E /DCOPY:DA /COPY:DAT /ZB /XO /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
ERROR : You do not have the Backup and Restore Files user rights.
***** You need these to perform Backup copies (/B or /ZB).
On Wed, 10/1/2025 10:58 PM, Steve Hayes wrote:
I want to run the Robocopy command from a batch file to copy all new
or changed files from the source directory to the destination
directory and all subsirectories.
Summary: The C: drive is like an amusement park. There is always a
ride to break and throw you on the ground :-) Take care :-)