>hi there
>i'm trying to write a simple file (.bat) to make a copy of some files in a folder called C:\filecop\
>then i call the ntbackup to get a backup of this folder
>
>are there any way to send parameters or someonelse to ntbackup to get the backup of the folder automatically? thats it .. do the backup without need to select the folder in the backup window of the backup program of windows NT (server)??
>
You can run NTBACKUP using command line parameters to drive it - you could then create a .CMD file (the NT equivalent of a .BAT file) and fire it from the command line, or even via AT. The command line would look like:
NTBACKUP backup
< list of paths to back up > [
/v] [
/a]
/a appends to the tape - ommitting it overwrites the tape
/v verifies the backup session - omitting it does not verify the tape
Example:
NTBACKUP backup C:\Folder1 C:\Folder2 D:\Folder3 /a /v
backs up the content of the three directories specified, appending to the end of the current tape, and verifying the tape afterwards. It does a normal backup (as opposed to incremental, differential, etc.)
NTBACKUP backup D:\MyDir1
backs up the content of D:\MyDir, overwriting whatever else is already on the current tape. No verify is performed.
There are other command line switches available -
NTBACKUP /? from a command prompt will bring up the NT Help screens. Another good reference is available at
http://www.ntfaq.com which has over a dozen entries in it related to the NTBACKUP utility.
>thanks in advance
>
>Best regards