Hello to all, I have a script which uses rsync quite nicely to backup my Linux mail server to my XP machine from time to time to facilitate CDR archives. The scrip is run as a batch file on the XP box and is scheduled via Windows Scheduler. It works quite well with one exception: many of the mail files come through as 0KB files and it seems that most of these have unusual filenames, particularly those starting with a period. Since this affects 95% of the files in the mail directories, this is a serious problem for me! For instance: 1120817285.22306_0.mail (works fine) .1124450874.30945_0.mail (reports 0KB) .1123700716.P14142Q0M23.mail (reports 0KB) .1087907444.7006_1.mail.domain.com,U=1,W=42566 (reports 0KB) Is there any known fix for this problem? I realize that Linux filenames and conventions don't necessarily play nice with Windows, but perhaps someone here as experience in getting this to work. Google has thus far proved ineffective in finding a solution! Also, since I'm new to these mailing lists, how do I reply to someone who as replied to my post? Thanks! -------------- next part -------------- HTML attachment scrubbed and removed
I have the same problem: backing up IMAP mail on a linux box to a win2k box. My solution was to tar each mail directory and then rsync that. I'm running a cron job on the linux box to do the tars and rsyncs. -john Brent Blayney wrote:> Hello to all, > > I have a script which uses rsync quite nicely to backup my Linux mail > server to my XP machine from time to time to facilitate CDR archives. > The scrip is run as a batch file on the XP box and is scheduled via > Windows Scheduler. > > It works quite well with one exception: many of the mail files come > through as 0KB files and it seems that most of these have unusual > filenames, particularly those starting with a period. Since this > affects 95% of the files in the mail directories, this is a serious > problem for me! For instance: > > 1120817285.22306_0.mail (works fine) > .1124450874.30945_0.mail (reports 0KB) > .1123700716.P14142Q0M23.mail (reports 0KB) > .1087907444.7006_1.mail.domain.com,U=1,W=42566 (reports 0KB) > > Is there any known fix for this problem? I realize that Linux > filenames and conventions don't necessarily play nice with Windows, > but perhaps someone here as experience in getting this to work. > Google has thus far proved ineffective in finding a solution! > > Also, since I'm new to these mailing lists, how do I reply to someone > who as replied to my post? > > Thanks!
Thing is, it's not an rsync problem. It's a windows filesystem problem. Or at least a windows problem of some sort. You can't have a file called: 1124816518.8634_2.mailbox:2,S in windows. -john Gary Thomson wrote:>Cygwin comes with rsync which might help with your problem, cheers > >Gaz > >-----Original Message----- >From: rsync-bounces+gary.thomson=uk.wanadoo.com@lists.samba.org >[mailto:rsync-bounces+gary.thomson=uk.wanadoo.com@lists.samba.org] On >Behalf Of John Jablonski >Sent: 23 August 2005 18:11 >Cc: rsync@lists.samba.org >Subject: Re: Linux to Windows > >I have the same problem: backing up IMAP mail on a linux box to a win2k >box. > >My solution was to tar each mail directory and then rsync that. I'm >running a cron job on the linux box to do the tars and rsyncs. > >-john > >Brent Blayney wrote: > > > >>Hello to all, >> >>I have a script which uses rsync quite nicely to backup my Linux mail >>server to my XP machine from time to time to facilitate CDR archives. >> >> > > > >>The scrip is run as a batch file on the XP box and is scheduled via >>Windows Scheduler. >> >>It works quite well with one exception: many of the mail files come >>through as 0KB files and it seems that most of these have unusual >>filenames, particularly those starting with a period. Since this >>affects 95% of the files in the mail directories, this is a serious >>problem for me! For instance: >> >>1120817285.22306_0.mail (works fine) >>.1124450874.30945_0.mail (reports 0KB) >>.1123700716.P14142Q0M23.mail (reports 0KB) >>.1087907444.7006_1.mail.domain.com,U=1,W=42566 (reports 0KB) >> >>Is there any known fix for this problem? I realize that Linux >>filenames and conventions don't necessarily play nice with Windows, >>but perhaps someone here as experience in getting this to work. >>Google has thus far proved ineffective in finding a solution! >> >>Also, since I'm new to these mailing lists, how do I reply to someone >>who as replied to my post? >> >>Thanks! >> >> > > >-- Deluxe Stitcher 6635 W. Irving Park Rd. Chicago, IL 60634 Phone: 773-777-6500 x40 Fax: 773-777-0156 Email: jjablonski@deluxestitcher.com Web: http://www.deluxestitcher.com
I'm sure, too. Apparently, you can't start a filename with a period in Win, either, as my previous examples showed. 1120817285.22306_0.mail (works fine) .1124450874.30945_0.mail (reports 0KB) .1123700716.P14142Q0M23.mail (reports 0KB) .1087907444.7006_1.mail.domain.com,U=1,W=42566 (reports 0KB) Is it possible for Cygwin to emulate an ext2 or ext3 partition on the NTFS drive? The other idea I had was to have a dual-bootsystem and actually back up when booted in Linux, but obviously this seriously complicates the automation process.> Yep. I'm sure.> There's no colon's in your filenames there.> Can't have these characters in a filename: > \ / : * ? " < > |> -john> David Filion wrote:> John Jablonski wrote: > >> Thing is, it's not an rsync problem. It's a windows filesystem >> problem. Or at least a windows problem of some sort. >> >> You can't have a file called: >> 1124816518.8634_2.mailbox:2,S > > Sure about that? > > 1115996480.12736_4.ritalin.autolinq.com,S=7399_2,S > > No problem on NTFS or fat32. These were extracted from a tar, not > directly created using rsync though. >