automated Rsync to remote host, preserve owner
Matt McCutchen
matt at mattmccutchen.net
Thu Sep 25 22:33:54 GMT 2008
On Thu, 2008-09-25 at 14:58 -0600, RAY wrote:
> I'm trying to set up a backup server using rsync.
> I would prefer to push data from one server to another, automated through a
> cron job. It is quite important to preserve the owner/group and permissions.
>
> google and the archives haven't gotten me very far.
>
> the two servers each have a seperate IP address, but they also have access to
> the same private, trusted LAN.
> I'm having trouble figuring out how to set this up.
> Each server is freebsd 7.0
> I haven't quit figured this out, but this is what I think so far:
> setup rsync daemon using inetd on the receiving end so that it only listens on
> 192.168.*.*. Set uid and gid to root in rsyncd.conf
> and then on the sending end issue the command (through cron)
> rsync -arlpogtUH --delete-delay --password-file /path/to/pass /path/to/files
> user at example.com:/path/to/files
Check the examples at the top of the man page. You need a double colon
to access an rsync daemon; a single colon indicates a remote shell.
Matt
More information about the rsync
mailing list