Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BATCH FILE TO START A BACKUP

Status
Not open for further replies.

itsfisko

Technical User
Jan 19, 2002
226
GB
Hi all can any one give me some ideas of how to write a bat file to back up a range of files from my server to DAT tape drive using the native win2k backup?
Thanks Stressed school tech

Some lead, some follow....I just Hope! :)
 
There are a bunch of command line switches in the help for ntbackup. I've never done it from a batch file though I've always used the scheduler. is there a reason you want to run it from a batch file?
 
Hi Mike scheduler would be fine , can I set it to back up certain files of my choice?


Some lead, some follow....I just Hope! :)
 
Since the backup drive is a tape drive(DAT or otherwise) you need to. Use NTBackup to select the files you want to backup to the tape drive. Use the included backup wizard at the "Completing the Backup Wizard" page click on <advanced>. When you reach the "When to Back Up" page click on <later> and then <set schedule> and set the schedule.
 
Take a look at XXCOPY. . It has somewhere around 200 different command parameters, although I always just find myself using /backup, which only copies files that have changed or been added to a particular directory.

--
 
Thanks all I will try these ideas tommorow @ school

Some lead, some follow....I just Hope! :)
 
works fine thanks all :)

Some lead, some follow....I just Hope! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top