我正在尝试使用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驱动器)-我已允许该文件夹中的用户/客人/管理员获得完全权限(读/写),在任何地方都找不到您可以在控制面板上添加“网络”权限的地方,没有添加用户组的选项。
有什么想法吗?