I'm getting ready to migrate a rather large mail system over the next couple of days and I want to do an initial copy of the mboxes over to the new system to test the maildir conversion and then use rsync to simply do an incremental copy when I am ready to make the 'final' conversion. Is it possible to do a incremental rsync on an entire directory? Say rsync /var/spool/mail on one machine to /test which is /var/spool/mail (nfs) on another machine? Thanks, Andrew -------------- next part -------------- HTML attachment scrubbed and removed
Rsync can handle directories. However, the only step of the communication that is incremental is the part between the sending rsync process and the receiving rsync process. In your setup, the receiving rsync will have to rewrite all changed files in their entirety using the non-incremental NFS protocol. To get any benefit from rsync's incremental transfer, you need to have the receiving rsync run on the new mail server using either SSH or an rsync daemon. SSH is probably easier. The command to issue on the sending machine looks like this: rsync <options> /var/spool/mail/ root@new.mail.server.com:/var/spool/mail/ Matt
On Wed 02 Aug 2006, Drew Weaver wrote:> conversion. Is it possible to do a incremental rsync on an entire > directory? Say rsync /var/spool/mail on one machine to /test which is > /var/spool/mail (nfs) on another machine?Note that it's much more efficient to rsync to the system where the data is actually stored, in this case the NFS server; otherwise the transfer involves two network steps: rsync to the NFS client, and then from the NFS client to the NFS server. Of course, if the NFS server is a NetApp Filer, then you don't have much choice... Paul Slootman