Notes from the terminal ward

Redeeming creation one byte at a time

rsync part 3

June14

In the OMGoodness, it just keeps on coming catagory:

I’m redoing rsync today and wanted to get a couple of things down for you cats.  This is the way we mirror our website:

Staging Server (privately addressed)

I have /etc/rsyncd.conf setup and reads as follows

gid = users
read only = true
use chroot = true
max connections = 3
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
hosts allow = private side of the DMZ (allows for only one connection from this IP addy only…)
slp refresh = 300

[module name for rsync]
path = /srv/www/htdocs
comment = My Workplace’s website
list = yes
auth users = the name of the dummy account I chose to make the move with.  Doesn’t need to ‘exist’
secrets file = /etc/rsyncd.secrets

and I have rsyncd running

Front ends:

cront job that runs the following every minute:

rsync –password-file=’/home/rsync.pass’ -avz account@ipaddress of target server::rsyncentry for module –address private side of DMZ –delete /srv/www/htdocs

posted under Paradigm Shift, Tech

Email will not be published

Website example

Your Comment: