Solved

Ntbackup log files location

Posted on 2007-03-28
2
3,452 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 125 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

635 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