Logging to a MMDDYYYY filename

nnBackup discussion

Logging to a MMDDYYYY filename

Postby tonyb » Wed, 28 Sep 2005, 17:17

I would like to create daily logs of backup activity to a filename with a naming convention of the current date (MMDDYYYY.txt) format. I do not see where nnbackup supports this. If anyone knows how to do it using nnbackup or a 3rd party utility in conjunction with nnbackup I would greatly appreciate a reply.

Thanks.
tonyb
 
Posts: 4
Joined: Wed, 28 Sep 2005, 16:49

Re: Logging to a MMDDYYYY filename

Postby D.Ilyin » Wed, 28 Sep 2005, 17:53

tonyb wrote:I would like to create daily logs of backup activity to a filename with a naming convention of the current date (MMDDYYYY.txt) format. I do not see where nnbackup supports this. If anyone knows how to do it using nnbackup or a 3rd party utility in conjunction with nnbackup I would greatly appreciate a reply.

Thanks.

try to use this option with nnBackUP
Code: Select all
-log "c:\log\%DD%%MMM%%YYYY%.txt"
D.Ilyin
 
Posts: 41
Joined: Mon, 02 Aug 2004, 13:07

Postby tonyb » Thu, 06 Oct 2005, 20:18

Thanks for the reply. It was close... There actually need to be 2 sets of %% around each variable when using in a batch file. What worked was

-log "c:\logs\%%MMM%%%%DD%%%%YYYY%%.txt"
This generated a txt file called "Oct062005.txt" I just added dashes in between the variables to neaten it up a bit.

Thanks for pointing me in the right direction.
This is documented in the "predefined variables" section I found.
tonyb
 
Posts: 4
Joined: Wed, 28 Sep 2005, 16:49


Return to nnBackup forum (English)

Who is online

Users browsing this forum: No registered users and 4 guests

cron