home bbs files messages ]

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,622 of 42,547   
   foxidrive to Ghoraq   
   Re: Incremental copy from batch   
   15 Apr 13 20:42:00   
   
   From: not@this.address.invalid   
      
   On 15/04/2013 7:55 PM, Ghoraq wrote:   
   > 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"   
      
   /xa:sh is skipping system and hidden files.   
      
   /fft will not copy files that match within 2 seconds.   
      
   /xj ignores junction points.   
      
   It's up to you to check these things to see how they apply to the missing   
   files.  We don't have the files   
   to check, but they would seem to be the cause of the issue - unless the files   
   are open and locked by an   
   application, or there is a permissions issue.   
      
      
   > 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.   
      
   --   
   foxi   
      
   --- 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