Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 40,623 of 42,547    |
|    Ghoraq to All    |
|    Incremental copy from batch    |
|    15 Apr 13 11:55:29    |
      From: stefano.schifano@fastwebnet.it              Dear new alt.msdos.batch and alt.msdos.batch.nt readers,       I need to synchronize 2 folders to make scheduled copies on my server to       a nas.       Then i created a batch using that execute a robocopy script, performs an       incremental copy of the folders.       The batch is copydaily.bat and include the following command:              powershell.exe -ExecutionPolicy unrestricted -file "d:\batch\daily.ps1"              Then, there's the script with these rows:              $day = Get-Date -Uformat %a       robocopy d:\userdata       \\192.168.0.31\share\bk-srvcont\daily\$gior\userdata\ /mir /r:0 /XA:SH        /fft /XJ /log:"D:\batch\log\daily.log"                     The problem is that upon completion of the copy, if I go to check, not       all files have been copied, and in general, they are still missing about       50 or more.       Can you tell me if I have done something wrong in setting up the batch       or script? Or there's another way to perform an incremental copy that do       the same think?       Thanks.       Stefano              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca