Question : Help needed with to script Robocopy

Hi,

I have two USB disk attached to a server. I have copied all the data from disk E: to disk F: I want now to setup Robocopy in order to run diferential copies from E: to F:

The goal would be to use a batch or vbs to run robocopy and the right switches in order to copy all the changes.  Once I have the script I will run a scheduled task.

I have found the following script but it does not work.  am getting following output on my console which is repeating continously:

Maximum setlocal recursion level reached.

Could someone help me out.

Thank you.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
@ECHO OFF
SETLOCAL
 
SET _source=E:\
 
SET _dest=F:\
 
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%

Answer : Help needed with to script Robocopy

Yes, this seems normal.

It isn't moving to the last record, it's populating all records to the last, in a dynamic recordset (you can potentially edit any record and it should reflect any editing taking place dynamically!). It's not simple, but it's useless.

If Demand_Check_C is an Access table, you can open it in table mode and you can read the last record instantly (but a table doesn't have a record cont). If it isn't, you can use dbForwardOnly to speed things up, but, as the name implies, you cannot move back.

Basically, your function might very well run for a dozen hours, It's not clear what it does, but if you are in the process of normalising a table structure, some operations can take that sort of time. But you don't need the record count.

Use a table-type or a forward only recordset, use the 60 records chunks (still yielding in the order of 100'000 non-trivial insert queries to analyse, optimise, and run), and copy the inner section outside of the loop to get the less-than-60 records from the end.

Do not use the total record count or absolute positions.

(°v°)
Random Solutions  
 
programming4us programming4us