Operating System - HP-UX
1836437 Members
2451 Online
110100 Solutions
New Discussion

Re: Restoring old print queue

 
Heath Ramos
Frequent Advisor

Restoring old print queue

Awhile back, my boot hard drive died on the hp 9000 running 11o and I restored using an ignite tape.

It wasn't until recently that I notice the print queue that I use for printing inventory tags doesn't exist anymore. This queue was tweaked by the developers of our ERP system.

Is it possible to restore files from a backup in order to recover the print queue (such as found in /etc/lp/interface, /etc/lp/interface/model.orig, /etc/lp/member, and /var/spool/lp/request)?

This is a queue to a line printer using a jetdirect box.
2 REPLIES 2
RAC_1
Honored Contributor

Re: Restoring old print queue

You can restore the required files - /etc/lp/interface, /etc/lp/interface/model.orig and all other dirs.

mt -f /dev/fmt/0mn fsf 1
tar -xvf /dev/rmt/0mn > /list

then restore the files.
There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: Restoring old print queue

It's probably easier to run the addqueue command (or use hppi if you like) to create the new printer with the same name as before then restore the /var/spool/interface/printername and /var/spool/interface/model.orig/printername files from backup. Ideally, you would disable the printer before doing the restore and then enable afterwards. Take care that exactly the right permissions and ownerships of these files is preserved. It's safe to restore these interface files while lpsched is running although adding the printer does require an lpshut.
If it ain't broke, I can fix that.