Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ntbackup
Message
De
15/04/1999 19:32:05
 
 
À
15/04/1999 08:47:27
Information générale
Forum:
Windows
Catégorie:
Administration & Sécurité
Titre:
Divers
Thread ID:
00208524
Message ID:
00208819
Vues:
27
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform