Date created: Sunday, June 19, 2011 10:06:55 AM. Last modified: Thursday, December 13, 2012 11:41:20 AM

Backup Print Server

I couldn't find an easy way to dump Win2k3 print server configurations for print server backups so I wrote this batch script to do it for me under a scheduked task;

@echo off
net use T: \\backupserver\printerserverbackups
sleep 10
for /f "tokens=1,2,3,4 delims=/ " %%a in ('DATE /T') do set tdate=%%d-%%b-%%c
"T:\Print Migrator 3.1.exe" -b C:\SERVERNAME-%tdate%-Everything.cab \\SERVERNAME
move C:\SERVERNAME-%tdate%-Everything.cab "T:\SERVERNAME-%tdate%-Everything.cab"
net use T: /DELETE /Y

One thing to note here is that the Print Migrator program is called to perform a backup using its -b switch, which backs up printer configurations, drivers, port settings et all, to a .cab file However, this wouldn't work when the destination was a mapped drive. That is why the script performs the backup to a local hard drive then copies it to the mapped network share.