Link to home
Start Free TrialLog in
Avatar of imranrft
imranrft

asked on

Windows XP backup using Group Policy

Is there any GPO available to setup NTBackup for WinXP workstations using Group Policy?

We want to configure automatic backup for all user profiles in our domain. The backup location will be a shared folder on a server.

We don't want to use Folder Redirection because it will take a lot of bandwidth for 200 users and some profiles are above 5GB.

Is there a way to configure NTBackup via Group Policy?
Avatar of Lucian Constantin
Lucian Constantin
Flag of Romania image

By Group Policy I think not... or at least not directly... you could use instead a script that could be run at log-on or log-off and you can use the command0line reference to set the necesarry parameters to do the backup as you wish...
To access the "command line" reference just type at a command prompt: NTBACKUP /? and will show you all the options.
Avatar of imranrft
imranrft

ASKER

Can you give some more details for logon script?

I want to create a scheduled backup job in all workstations to backup "My Documents" folder to "\\servername\user_data\" on specific times.

Is is possible to do so via a logon script?

OR Group Policy?
You can use this script, you can name it ScheduleBackup.VBS

And you cand set it in you Log-On script... it masically use te AT command to schedule the NTBACKUP command.
set objShell = createObject("WScript.Shell")

cTime="20:05"
cBackupFolder="c:\bitware"
cBackupOptions=" /j 'Logon-Backup Job' /a /f '\\ang-dc-01\migrare\SpecialBK.bkf' /m copy"
cCommand="at " & cTime & " ntbackup backup " &  cBackupFolder & cBackupOptions

objShell.Run(cCommand)

wscript.echo "Backup scheduled"

Open in new window

Sorry for the typos from above... but this script maybe is more "generic" and you can adapt as you like and maybe you want to comment or delete the "echo" line that was used just to make shure the AT command run succesfully - you can check in the "Scheduled Tasks" it there is an AT cron job set to runt at desired time - and note that this command will be run only once at that time so use NTBACKUP /? to see how to set the time/date to suit your needs.


set objShell = createObject("WScript.Shell")

cTime="20:05"
cBackupFolder="FolderToBackup"
cBackupOptions=" /j 'Logon-Backup Job' /a /f '\\ShareToSave\BackupName.bkf' /m copy"
cCommand="at " & cTime & " ntbackup backup " &  cBackupFolder & cBackupOptions

objShell.Run(cCommand)

wscript.echo "Backup scheduled"

Open in new window

Thanks. I'll give it a try after the weekend.


ASKER CERTIFIED SOLUTION
Avatar of Lucian Constantin
Lucian Constantin
Flag of Romania 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