Computing.Net > Forums > Windows 2000 > Script for unattended Automatic backup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Script for unattended Automatic backup

Reply to Message Icon

Name: dorusone
Date: February 15, 2002 at 08:40:02 Pacific
Comment:


Hello :

TL : I want to backup the system state of my
H drive on my desktop Unattended automatic
at a specific time .

I found this :

Unattended automatic Windows NT Backups

Windows NT includes an application named ntbackup.exe; unfortunately it requires that the administrator be present to run it. The instructions below will show you how to have the program run automatically:

Create an "NT Script" (really a batch file with a .cmd extension), in this example we'll call it, backup.cmd; and type the following:

ntbackup backup c: d: /v /d "My_Backup" /b /hc:off /l "c:\winnt\backup.log"
The Script runs the application (ntbackup), and instructs it to back up (backup) drives c & d (c: d:) and to verify (/v) the backup, which will be named "My_Backup" (/d "My_backup"), then it should back up the NT registry "registry" (/b). The following switch (/hc:off) turns off compression and the last switch creates a log named backup.log in the winnt directory (or folder) of drive c (/l "c:\winnt\backup.log"). (You must use these options in the specified order for the backup to successfully run)

TL : I made following script :

ntbackup backup h:[systemstate] d: /v /d My_Backup /b

/hc:off /l "h:\winnt\backup.log"

Now run the NT service Schedule. To do this open Control Panel and select services. Double click Schedule. Under startup Type select Automatic and then click O.K. Next, click Start then Close. Now, exit to the Command Prompt and type:

at 02:00 /every:t,w,th,f,s "c:\winnt\backup.cmd"


TL :

I did :

H:\WINNT\System32\at 17:35 /every t,w,th,f,s
" H:\WINNT\system32\backup.cmd"

But I get an error :

THE SYSTEM CANNOT FIND THE DRIVE SPECIFIED

WHAT is wrong in my script ??

Thanks

Theo




(The command AT tells the Schedule service to run the script backup.cmd at 2:00 am every Tuesday, Wednesday, Thursday, Friday and Saturday).




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Script for unattended Automatic backup

login scripts for telnet server www.computing.net/answers/windows-2000/login-scripts-for-telnet-server/16804.html

Logon scripts for windows 2000 www.computing.net/answers/windows-2000/logon-scripts-for-windows-2000/11125.html

2k logon scripts for heterogeneous clien www.computing.net/answers/windows-2000/2k-logon-scripts-for-heterogeneous-clien/12171.html