Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Date stamped log file in NTBACKUP

Thread Tools
 
Search this Thread
 
Old 08 August 2003, 12:38 PM
  #1  
rogp
Scooby Regular
Thread Starter
 
rogp's Avatar
 
Join Date: Mar 2003
Posts: 455
Likes: 0
Received 0 Likes on 0 Posts
Question

I call NT backup from a scheduled batch file that runs each night, which in turn creates a log file to showing the backup contents and verification details.

How can I create a log file each night that uses the date/time as its filename?

Roger

[Edited by rogp - 8/8/2003 12:44:18 PM]
Old 08 August 2003, 12:51 PM
  #2  
beemerboy
Scooby Regular
 
beemerboy's Avatar
 
Join Date: Sep 2002
Location: Essexville
Posts: 4,391
Likes: 0
Received 0 Likes on 0 Posts
Post

rogp, someone here created a batchfile for me to do a similar thing
basically i had a logfile, which i rename(with datestamp)and move to a logs folder, at 00.01 each morning.

is that what you are after?

Old 08 August 2003, 12:59 PM
  #3  
beemerboy
Scooby Regular
 
beemerboy's Avatar
 
Join Date: Sep 2002
Location: Essexville
Posts: 4,391
Likes: 0
Received 0 Likes on 0 Posts
Post

set d1=%date%
set dd=%d1:~4,2%_
set mm=%d1:~7,2%_
set yy=%d1:~12,2%
set fd=%dd%%mm%%yy%.log
move c:\websec~1.log c:\logs\%fd%

{replace c:\websec~1.log to you logfile name)
remember to use the 8.3 filename format

BB

save this as a batchfile and let win2k schedule it
Old 08 August 2003, 01:11 PM
  #4  
rogp
Scooby Regular
Thread Starter
 
rogp's Avatar
 
Join Date: Mar 2003
Posts: 455
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks Beemerboy, thats perfect.

Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Frizzle-Dee
Essex Subaru Owners Club
13
09 March 2019 07:35 PM
yabbadoo4
ScoobyNet General
11
30 September 2015 10:33 PM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM



Quick Reply: Date stamped log file in NTBACKUP



All times are GMT +1. The time now is 12:57 PM.