How to save and restore printer / printer settings?

Problems and successes with specific brands/models of printers
Post Reply
Message
Author
der-schutzhund
Posts: 1045
Joined: Mon 26 Nov 2007, 22:07
Location: Blomberg / Germany

How to save and restore printer / printer settings?

#1 Post by der-schutzhund »

Hi.

Maybe someone can help me?
I want to save the printer settings and installed printer for later restore.
I backed up the / etc / cups and restored but it will not display any printer.
How is that possible in lucid528?

Greetings

Wolfgang

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

did you kill cupsd somehow ? does cupsd run in the background ?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#3 Post by Karl Godt »

cupsd is getting launched by /etc/init.d/cups at bootup .

cupsd might only parse the configuration files once at launch time and does not poll them anymore while running .

Code: Select all

/etc/init.d/cups restart
could do it if you restore the rueckauf file in the current session, while cupsd is running but does not look behind anymore into /etc/cups .

der-schutzhund
Posts: 1045
Joined: Mon 26 Nov 2007, 22:07
Location: Blomberg / Germany

#4 Post by der-schutzhund »

Hi Karl Godt,

das war ein guter Tip! Es läuft!
Weißt du vielleicht auch noch wie man die Auflösung mit einem Script einstellen kann? :)

Greetings

Wolfgang

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#5 Post by Karl Godt »

Sounds good :)

If you make /etc/init.d/cups non-executable, it would not be launched at bootup by rc.services .

/etc/profile
/root/Startup
/root/.xinitrc
/usr/sbin/delayedrun

are files i could think of to implement something

like

Code: Select all

/etc/init.d/cups stop
find /somewhere -name cups_backup_folder -exec cp -a --remove-destination "{}"  /etc \;
/etc/init.d/cups start

Post Reply