Link to home
Start Free TrialLog in
Avatar of Ossie Akaunu
Ossie AkaunuFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Create Backup (.bks -NTBackup (2003 Server)) File with Batch or VBScript

I have requirement to backup with NTBackup (2003 Server) a selection of 930 Home Directories from a total of 2800 Home Directories.

The prospect of manually selecting 930 folders from the NTBackup interface is daunting in itself but is extremly prone to human error.

I have carrid out initial research (Google) but I am unable to find a complete solution to manually (By Batch or Vscript) create a backup file where I can include the unc paths of the Home Directories that I require to backup.

I am thinking of a batch file in the format below ?

ntbackup backup \\server1\Home$\user1 /j "RedundantHomeFolders" /f "\\BackupServer1\DataStore$\HomeFolders.bks"
ntbackup backup \\server1\Home$\user2 /j "RedundantHomeFolders" /f "\\BackupServer1\DataStore$\HomeFolders.bks" /a
ntbackup backup \\server1\Home$\user3 /j "RedundantHomeFolders" /f "\\BackupServer1\DataStore$\HomeFolders.bks" /a
.
.
.
ntbackup backup \\server1\Home$\user930 /j "RedundantHomeFolders" /f "\\BackupServer1\DataStore$\HomeFolders.bks" /a

Help and guidance in this matter is sincerly appreciated.

Thanks

Ukpowo
ASKER CERTIFIED SOLUTION
Avatar of MidnightOne
MidnightOne
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial