How to Migrate Linux Cups Printer from one server to other server


CUPS stores its configuration at /etc/cups directory, we have to do is copy /etc/cups to a new server. 

Steps:

1. Open terminal and type the commands on old Linux server:
# tar -cvzf /tmp/cups-$(hostname).tar.gz /etc/cups

2. Copy /tmp/cups* to new server using SCP or any desired method:
# scp /tmp/cups* new.linux.server.com:/tmp

3. Login to new server and take backup of existing cups.
# mv /etc/cups /etc/cups.backup
# cd /
# tar -zxvf /tmp/cups*

4. Restart the cups service:
service cups restart