/is "server name"

/m backuptype

Backs up the information store on the specified Microsoft Exchange server.

Appends the backup set to any data on the media. If backing up to a tape, you must use this switch with either /g or /t to specify the tape you want to append to. You can't use this switch with /p, as you must append to a specific tape, not an entire media pool.

Specifies whether the backup procedure should be verified or not. Verifying the data (making sure the data in the backup matches the source) takes a little time, but reassures you that the data was written correctly.

Specifies whether the tape should be available only to its owner/creator and members of the Administrators group.

Tells NTBACKUP what kind of log file to create: full (logging every copied file), summary (logging only important events and errors), or none (in which case the backup won't be logged).

Tells NTBACKUP what kind of backup to run: normal, copy, incremental, differential, or daily.

Tells NTBACKUP whether or not to back up the removable storage database that records the location of archived files. If you're using removable storage, you should back up this database regularly to make sure that you can retrieve archived files.

Tells NTBACKUP whether to use hardware compression (available only if you're backing up to a tape drive, and then only if that tape drive supports it-most do). Go ahead and use hardware compression if it's available, as it will allow you to get more use out of your tapes.

NOTE If you don't specify options for the switches /v /r /l /m /rs /hc, then the settings already in the GUI version of Windows Backup will control. For example, verification is disabled by default, so if you don't enable it from the command line and don't change it from the GUI, your backups won't be verified.

Let's start with a simple example. To back up all the files in G:\Acme\tools to the file system2.bkf on drive D:, you would type:

ntbackup backup g:\acme\tools\ /f d:\system2.bkf To perform a differential backup of the same folder, verify the backup, and name the backup job "Differential backup of Acme tools," you'd type: ntbackup backup g:\acme\tools\ /f d:\system2.bkf ^/d "Differential backup of Acme tools"

Once you've created a backup job, you can use the command-line AT command to schedule the backup. The AT command schedules commands and programs to run on a computer at a specified time and date. The AT command's syntax looks like this: AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE]

[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

Was this article helpful?

0 0

Post a comment