I created a perl script to look at each mail directory. Seems rsync works better when it doesn't have much to keep track off.
I am also using nice -19 which seems to reduce the problems. Thanks. On 26/10/03 19:04 +0100, Christian Storch wrote: > Perhaps you have some hundreds of 3000 files to sync. > So rsync would have a lot of work building the file list. > > Try it with 'nice rsync ...' or use nice with setting a very low priority > (high value!). > > Christian > > ----- Original Message ----- > From: "Theodore Knab" <[EMAIL PROTECTED]> > To: "Debian-ISP" <[email protected]> > Sent: Sunday, October 26, 2003 2:00 PM > Subject: rsync on maildir > > > > I am using rsync to backup mail on a mail-server with 3000+ mail > > accounts [only 1550+ are in use]. Using this command: > > > > /usr/bin/rsync -a --delete /var/imap/mailarray /var/oldarray > > > > This mail server only receives about 2GB of mail per day. Rsync is run > > without shutting down any services. > > > > About half the time I run rsync the system slows down to the point that > > mon starts sending me pages. To fix it, I have to log in, and kill the rsync > > process. > > > > Is there a more efficient way to run rsync without down time ? > > > > Or should I be using something else for backups ? > > > > After the last failure I ran rsync in dry-run mode and I got this error: > > imap:~# /usr/bin/rsync -axn --delete /var/imap/mailarray /var/oldarray -T > > /tmp --timeout=10 > > building file list ... > > rsync: writefd_unbuffered failed to write 4092 > > bytes: phase "send_file_entry": Broken pipe > > rsync error: error in rsync protocol data stream (code 12) at io.c(515) > > > > imap:~$ rsync --version > > rsync version 2.5.6 protocol version 26 > > > > file-system ext3: > > raid-card:0 > > #system file-system and mail backup > > /dev/sda5 on /var/oldarray type ext3 (rw,noexec,nosuid,nodev) [] > > > > raid-card:1 > > #mail storage > > /dev/sdc5 on /var/imap type ext3 (rw,noexec,nosuid,nodev,usrquota) [] > > > > -- > > ------------------------------------------ > > Ted Knab > > Chester, MD 21619 > > > > ------------------------------------------ > > 940216d6021602a41607166696c656c202778696368602d65616e637 > > 02940226c696e646c69702c6f667560256675627478696e67602a416 > > 0716e6563756e2a0 > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- ------------------------------------------ Ted Knab Chester, MD 21619 ------------------------------------------ 940216d6021602a41607166696c656c202778696368602d65616e637 02940226c696e646c69702c6f667560256675627478696e67602a416 0716e6563756e2a0

