Solved

Ntbackup log files location

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now