Just finished running a nightly backup routine with horrible ressults in the log file. I don't know it the log is not recording properly or if the macro is processing out of sequence.
I am including some annoted excerpts from the log file:
Thet section of the macro script follows here:4/26/2003 00:30:00:840 -
4/26/2003 00:30:00:840 - Label>Qbooks2003
4/26/2003 00:30:00:840 - //::QUICKBOOKS 2003 - keep last 7 days
The following lines should only run one time
4/26/2003 00:30:00:840 - Change Directory>Q:\Backups\Qbooks2003
4/26/2003 00:30:00:840 - Message>Copying QuickBooks 2003 file may take 1-2 minutes....please be patient..
4/26/2003 00:30:00:890 - Change Directory>Q:\Backups\Qbooks2003
4/26/2003 00:30:01:170 - DeleteFile>sensible_2003.007
4/26/2003 00:30:01:170 - Let>RP_WINDOWMODE=0
4/26/2003 00:30:01:220 - DeleteFile>sensible_2003.007
4/26/2003 00:30:01:220 - Let>RP_WINDOWMODE=0
4/26/2003 00:30:01:500 - Run Program>command.com /c rename sensible_2003.006 sensible_2003.007
4/26/2003 00:30:01:500 - Run Program>command.com /c rename sensible_2003.006 sensible_2003.007
4/26/2003 00:30:01:990 - Run Program>command.com /c rename sensible_2003.005 sensible_2003.006
4/26/2003 00:30:02:050 - Run Program>command.com /c rename sensible_2003.005 sensible_2003.006
4/26/2003 00:30:02:320 - Run Program>command.com /c rename sensible_2003.004 sensible_2003.005
4/26/2003 00:30:02:380 - Run Program>command.com /c rename sensible_2003.004 sensible_2003.005
.....
.....
.....
4/26/2003 00:30:18:740 - Change Directory>Q:\Backups\Outlook
4/26/2003 00:30:18:850 - DeleteFile>outlook.007
4/26/2003 00:30:18:910 - Let>RP_WINDOWMODE=0
4/26/2003 00:30:19:240 - Run Program>command.com /c rename Q:\Backups\Outlook\outlook.006 outlook.007
Following line belongs above with QuickBooks 2003 items.
4/26/2003 00:30:19:510 - CopyFile>C:\My Documents\Data\Qbooks\2003\sensible_2003.qbw,Q:\Backups\Qbooks2003\sensible_2003.qbw
4/26/2003 00:30:19:570 -
The following lines belong above with the Quicken99 files, not part of Outlook
4/26/2003 00:30:19:570 - Label>Quicken99
4/26/2003 00:30:19:570 - //::QUICKEN - keep last 7 days
4/26/2003 00:30:19:570 - Message>Copying Quicken 99 files may take 1-2 minutes....please be patient..
4/26/2003 00:30:19:680 - Change Directory>Q:\Backups\Quicken99
4/26/2003 00:30:19:950 - Run Program>command.com /c rename Q:\Backups\Outlook\outlook.005 outlook.006
The following line belongs above with the Quicken99 files, not part of Outlook
4/26/2003 00:30:20:280 - DeleteFile>home.007
4/26/2003 00:30:20:390 - Let>RP_WINDOWMODE=0
4/26/2003 00:30:20:880 - Run Program>command.com /c rename Q:\Backups\Outlook\outlook.004
.....
.....
.....
What is happening here? The log file is about 350 lines doing backups for about 12 different applications. The sample above is typical of the log contents, lines being executed multiple times. Lines being executed in the wrong sequence..Label>Qbooks2003
//::QUICKBOOKS 2003 - keep last 7 days
Message>Copying QuickBooks 2003 file may take 1-2 minutes....please be patient..
Change Directory>Q:\Backups\Qbooks2003
DeleteFile>sensible_2003.007
Let>RP_WINDOWMODE=0
Run Program>command.com /c rename sensible_2003.006 sensible_2003.007
Run Program>command.com /c rename sensible_2003.005 sensible_2003.006
Run Program>command.com /c rename sensible_2003.004 sensible_2003.005
Run Program>command.com /c rename sensible_2003.003 sensible_2003.004
Run Program>command.com /c rename sensible_2003.002 sensible_2003.003
Run Program>command.com /c rename sensible_2003.001 sensible_2003.002
Run Program>command.com /c rename sensible_2003.qbw sensible_2003.001
Let>RP_WINDOWMODE=1
CopyFile>C:\My Documents\Data\Qbooks\2003\sensible_2003.qbw,Q:\Backups\Qbooks2003\sensible_2003.qbw
Label>Quicken99
//::QUICKEN - keep last 7 days
Message>Copying Quicken 99 files may take 1-2 minutes....please be patient..
Change Directory>Q:\Backups\Quicken99
DeleteFile>home.007
Let>RP_WINDOWMODE=0
Run Program>command.com /c rename home.006 home.007
Run Program>command.com /c rename home.005 home.006
Run Program>command.com /c rename home.004 home.005
Run Program>command.com /c rename home.003 home.004
Run Program>command.com /c rename home.002 home.003
Run Program>command.com /c rename home.001 home.002
Run Program>command.com /c rename home.qdf home.001
Let>RP_WINDOWMODE=1
CopyFile>m:\Data\quicken99\home.*,Q:\Backups\Quicken99\
CopyFile>m:\Data\quicken99\q3.dir,Q:\Backups\Quicken99\
Label>Outlook
//::OUTLOOK - keep last 7 days
Message>Making 7 backups of Outlook file may take a few.minutes...please be patient..
//CopyFile took 18 minutes on 4/17/03
Change Directory>Q:\Backups\Outlook
DeleteFile>outlook.007
Let>RP_WINDOWMODE=0
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.006 outlook.007
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.005 outlook.006
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.004 outlook.005
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.003 outlook.004
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.002 outlook.003
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.001 outlook.002
Run Program>command.com /c rename Q:\Backups\Outlook\outlook.pst outlook.001
Let>RP_WINDOWMODE=1
Message>Copy of 7 backups of Outlook files is done.%CRLF%%CRLF%Will now start to make copy of latest Outlook file.%CRLF%%CRLF% This may take 18-25 minutes....please be patient..
//rem copies Outlook data in folders
CopyFile>m:\windows\Application Data\Microsoft\Outlook\outlook.pst,Q:\Backups\Outlook\outlook.pst
//rem copies Internet email data - need last 7 days
CopyFile>m:\windows\Application Data\Microsoft\Outlook\mailbox.pab,Q:\Backups\Outlook\mailbox.pab
//rem copies Outlook Folders - need last 7 days
CopyFile>m:\windows\Application Data\Microsoft\Outlook\Robert M Hansen.fav,Q:\Backups\Outlook\Robert M Hansen.fav
//rem copies Outlook Rules - need last 7 days
CopyFile>m:\windows\Application Data\Microsoft\Outlook\Robert M Hansen.rwz,Q:\Backups\Outlook\Robert M Hansen.rwz
Message>Copying Outlook files is done...Thanks for your patience..
If the log is incorrect, I can live with that for a while. But this needs immediate attention if the log is correcly recording the activities. I will try to do some testing on this on Saturday.