我正在尝试使用Robocopy每天执行备份,只更新已更新的文件,或者它们是新文件。
目前我在批处理文件中使用以下脚本: -
@ECHO OFF
SETLOCAL
SET _source="\\REMOTE-SERVER\Share"
SET _dest="\\LS-WXLDE8\Shared_QP"
SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree
SET _options=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging
ROBOCOPY %_source% %_dest% %_what% %_options% /MOT:1440
目前,我在日志文件中收到以下消息: -
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : 10 December 2014 09:51:11
2014/12/10 09:51:13 ERROR 5 (0x00000005) Getting File System Type of Destination \\LS-WXLDE8\Shared_QP\
Access is denied.
Source : \\REMOTE-SERVER\Share\
Dest - \\LS-WXLDE8\Shared_QP\
Files : *.*
Options : *.* /NDL /NFL /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /B /MOT:1440 /R:0 /W:0
------------------------------------------------------------------------------
NOTE : NTFS Security may not be copied - Destination may not be NTFS.
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"
Started : %s %s
Source %c
Dest %c
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
我尝试从Windows 8计算机备份到Buffalo Link Station Duo(NaS Drive) - 我已经允许该文件夹上的用户/来宾/管理员获得完全权限(读/写),无法在任何可以添加“网络”的地方找到控制面板上的权限,没有添加用户组的选项。
有什么想法吗?
答案 0 :(得分:0)
您没有正确的用户权限来访问该目录。
答案 1 :(得分:0)
您需要以管理员身份运行(右键单击批处理文件,然后选择“以管理员身份运行”)。如果目录/文件权限正确,很可能是因为UAC而被阻止。我知道这是永远发布的信息,但是我想我应该在这里回应。