Skip to content

Copy CUPS configuration from one server to another

Many versions of Linux use the Common UNIX Printing System (CUPS). Need to copy the configuration from one server to another? Here’s how.

Stop CUPS on the target system

Rename or backup the exiting CUPS configuration

mv /etc/cups /etc/cups.orig

Copy the /etc/cups directory from the source system to the destination system

Copy any modified model files from the source system to the destination system. These files should be in /usr/share/cups/model

On the destination server edit the file /etc/cups/cupsd.conf and check if the hostname or IP address of your source server is present. If so, change it to the destination server.

If any custom groups or accounts are used on the old system to manage CUPS recreate them on the new system.

Restart cups.

Test

One Comment

  1. Chris wrote:

    Spot on, mon ami! The only addition I’d make is:

    If your printer URLs contain host names instead of IP addresses, don’t forget to copy the relevant entries from /etc/hosts on the source machine into /etc/hosts on the destination.

    Friday, October 3, 2008 at 12:47 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*