?
Solved

Ntbackup log files location

Posted on 2007-03-28
2
Medium Priority
?
3,508 Views
Last Modified: 2012-08-13
With the "at" scheduler, I nightly run:
ntbackup backup "@C:\foo.bks" /n "Daily-Full" /d "Daily Full Backup" /v:yes /r:no /rs:no /hc:on /m normal /j "Daily Job" /l:f /p "8mm AIT" /um

That runs fine.

What's strange is that my log files are sometimes in:
C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\
and sometimes in
C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\

I can't find the "rhyme or reason" as to why sometimes the logs are under the "Administrator" profile and sometimes under "Default User" instead. They are consistently in the same folder every night for weeks, but then after a system reboot (like after updates, etc.) then it will sometimes change to the other profile (or not) and then consistently log to that one for weeks, etc.

1. Can anyone explain this phenomenon?
2. Can I explicitly specify the folder in my script by doding something like:
ntbackup backup "@C:\foo.bks" /n "Daily-Full" /d "Daily Full Backup" /v:yes /r:no /rs:no /hc:on /m normal /j "Daily Job" /l:f /p "8mm AIT" /um /TheMagicSwitchGoesHere "C:\PutTheLogsHere"


0
Comment
Question by:mcj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Zenith63 earned 500 total points
ID: 18811450
I wonder is it putting them in the Administrator's profile when the server is left logged in but locked, but then when it's sitting at the logon prompt (following a restart or logout) where effectively nobody is logged on it's using the Default User profile?  You may be able to run the ntbackup from the [runas /user:domain\Administrator] (you'll have to pipe the password to runas) command which should stabilise which profile ntbackup decides to use.

I looked for a way of changing the path in the past and just looked again, I can't find a way of doing it unfortunately.  There's a batch file from Microsoft that just copies them to a new location and changes the name to the date.  I suppose you could do something similar; have a batch file that moves the logs out of both those potential directories into one folder, c:\backuplogs\ say.
0
 

Author Comment

by:mcj
ID: 19185389
Thanks Zenith63. It looks like the original problem that the log location is essentially "random" depending on whether the "current user" is Administrator (as in when you've been logged in and then lock the workstation) or Default User (as when the system has been rebooted, but no one has logged on at all) just isn't solvable directly. It seems that ntbackup won't let you specify, and the AT "RunAs" fetaure gets you nowhere either.

However, your answer is right on in that the best workaround is just to run a subequent script to copy from both locations to one, overwriting with newer. Works fine even though you'd think Microsoft would fix this in ntbackup directly.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question