Rsync

From AdminWiki

(Difference between revisions)
Jump to: navigation, search
m (rsync)
(cookbook)
Line 4: Line 4:
== cookbook ==
== cookbook ==
 +
 +
===Migrating a server===
To migrate a server,
To migrate a server,
Line 12: Line 14:
usually does the trick. This should result in an exact copy of the source tree.
usually does the trick. This should result in an exact copy of the source tree.
 +
 +
===Minimum working config===
 +
 +
<pre>
 +
log file = /var/log/rsyncd.log
 +
pid file = /var/run/rsyncd/rsyncd.pid
 +
use chroot = yes
 +
 +
[bluewhite]
 +
path = /path/to/distro
 +
read only = yes
 +
list = yes
 +
transfer logging = yes
 +
</pre>

Revision as of 10:10, 30 May 2006

Contents

rsync

rsync is the perfect tool when you need to synchronize two files or file trees, be it just your homedirectory or a whole server. rsync can handle that.

cookbook

Migrating a server

To migrate a server,

rsync -aH --numeric-ids -x --delete / <additional mountpoints> <target>

usually does the trick. This should result in an exact copy of the source tree.

Minimum working config

log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd/rsyncd.pid
use chroot = yes

[bluewhite]
path = /path/to/distro
read only = yes
list = yes
transfer logging = yes 
Personal tools