Novell Home

Distribute Printer Drivers Across the Network with RSYNC

Novell Cool Solutions: Tip
By Florian Deckert

Digg This - Slashdot This

Posted: 8 Dec 2005
 

Problem:

How to distribute printer drivers (NetWare broker) across the network with RSYNC.

In TID10085929 you can see that you have to copy one folder from a central broker to remote brokers. But how can you do it automatically without having to copy hundreds of MBytes?

Solution:

Well, all you have to do is to use the famous RSYNC. Configure a RSYNC server on your central broker, add the following file and start sys:/rsync/rsyncstr.ncf

/etc/rsyncd.conf:

uid = nobody
gid = nobody
max connections = 0
syslog facility = local5
pid file = SYS:/etc/rsyncd.pid
motd file = SYS:/etc/rsyncd.motd
                                           
[NDPS]                                     
    path = sys:/ndps/resdir/english/prndrv
    comment = NDPS drivers
    read only = yes
    use chroot = no

On remote server you can use /etc/crontab to schedule the replication with the command:

rsync -arv --delete central.corp::NDPS/ SYS:/ndps/resdir/english/prndrv/

And what is great is that you don't even need to restart the remote brokers. They will use the dynamically replicated database.

Be aware that the next time you reload the brokers they will find out you tampered the database and will rebuild it.

Environment:

(OES) NetWare, Broker, RSYNC


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell