Ntbackup log files location

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"

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcjAuthor Commented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.