Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NTBACKUP
Message
From
06/03/1997 16:20:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00022908
Message ID:
00023200
Views:
40
>>Hi all!
>>
>>I have create account only for backup purposes. User name of this account is "backup", password is "backup", and this account have administrator user rights.
>>
>>Then I was configured schedule service to run automatic, and to run with this account.
>>
>>After that I wrote batch file in which I have following contents:
>>
>>NTBACKUP backup c:\ /d "Full backup c:\" /hc:on /t normal /l "c:\backup tape.log"
>>
>>and execute it with "AT" command at time where nobody is logged on (press ctrl+alt+del to logon message is on the screen).
>>
>>Everything on my drive c:\ is copied except \WINNT\NETLOGON.CHG with message "File \WINNT\NETLOGON.CHG is in use. It has been skipped". This test confirms that I was logged with administrator privileges.
>>
>>Then I change my batch file to have new contents:
>>
>>NTBACKUP backup c:\1996 c:\1997 c:\local c:\office c:\posta c:\pwrchute c:\script /d "1996, 1997 & lokalni diskovi" /b /hc:on /t normal /l "c:\backup tape.log"
>>
>>and execute it also with "AT" command when nobody is logged on.
>>
>>Everything was copied except local registry (note /b switch). I am wander why my registry is not copied.
>>
>>If I walk through NTBACKUP interface and select this directories (logged as backup) and select check box "backup local registry", registry will be copied.
>>
>>Why my local registry is not copied in batch file?
>>
>I've run into this too. It's because you're not logged on at batch time, and backup access is only granted with a logon for each user. It's built in for security, I guess. You could try copying registry to different file name for batch backup, or there might be a setting somewhere to change it...


Thanks for your answer Bruce!

Can you explain to me why I am not logged at batch time. Batch file is ran
by schedule service with administrator account. I think this should be same
like I am sitting on the computer and using this account to logon and to
execute batch file. If you are right, what is the purpose of choosing
account for schedule service.

You suggest solution to copy registry to the different file name. I knew a
little about registry files. For me this is replacement for old ini files.
I assume that one registry file have all old ini values. But, when I
interactive copy registry, I sow that there are whole bunch of directories
under system root /wintnt. How can I know what should I copy to be sure in
case of disaster I have all I need. Can you be more specific about what you
mean when you say "You could try copying registry to different file name
for batch backup".

I don't understand, if I have ability to copy all files in /winnt directory
through my batch file, why I can't backup some of this files. Looking
strange to me.

Thanks again for your answer, and please replay to this message with your
personal opinion which I really respect.

Zoran
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform