Batch file Robocopy-网络计算机之间的备份

Batch file Robocopy-网络计算机之间的备份,batch-file,cmd,robocopy,Batch File,Cmd,Robocopy,我正在尝试使用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 mod

我正在尝试使用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驱动器)-我已允许该文件夹上的用户/来宾/管理员具有完全权限(读/写),在控制面板上找不到可以添加“网络”权限的任何位置,没有添加用户组的选项


有什么想法吗?

您没有访问该目录的正确用户权限。

您需要以管理员身份运行(右键单击批处理文件并选择“以管理员身份运行”)。如果目录/文件权限正确,您很可能因为UAC而被阻止。我知道这是很久以前发布的,但我想既然我在这里,我会给出一个回复。

尝试备份到Buffalo Link Station Duo(NaS驱动器)-我已经允许该文件夹上的用户/来宾/管理员拥有完全权限,在控制面板上找不到任何可以添加“网络”权限的地方。