Page 1 of 1

How to save and restore printer / printer settings?

Posted: Mon 08 Apr 2013, 20:48
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

Posted: Mon 08 Apr 2013, 21:38
by Karl Godt
did you kill cupsd somehow ? does cupsd run in the background ?

Posted: Tue 09 Apr 2013, 05:18
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 .

Posted: Tue 09 Apr 2013, 18:51
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

Posted: Tue 09 Apr 2013, 20:15
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