How to: Migrate Linux Printer Configuration to Another System
I've already outlined the detailed steps for migrating users, home directories and email to a new Linux server. I received a couple of emails asking about migrating printer configuration. From my mail bag:
Is it possible to migrate the printer configuration from one machine to another, just like user migration?
Yes, it is possible since Linux uses CUPS i.e. the common unix printing system. It is a modular printing system for Unix-like computer operating systems that allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer.
Migrate Linux Printer Configuration
CUPS stores its configuration at /etc/cups directory, so all you have to do is copy /etc/cups to a new computer. Open terminal and type the commands on old Linux computer:
# tar -cvzf /tmp/cups-$(hostname).tar.gz /etc/cups
Copy /tmp/cups* to new system using SCP or use USB pen driver:
# scp /tmp/cups* new.linux.server.com:/tmp
Now login to new system and type the following commands:
# mv /etc/cups /etc/cups.backup
# cd /
# tar -zcvf /tmp/cups*
Finally, restart the cups service:
# /etc/init.d/cupsys restart
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in...
- Linux/UNIX: sharing a CUPS printer queue
- Print / Select a paper size other than A4 when using lp command line utility
- LPI: Linux install and configure printer
- How do I print out a Linux man or info page?
- Howto: Linux Configure Pass-Thru Print
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: common unix printing, common unix printing system, cups, linux printer, print server, printer configuration, scp_command, tar_command ~ Last updated on: November 6, 2007



thanks I was looking for this .