Re: How to push files from Linux to Windows
On Tue, Jun 2, 2009 at 9:25 AM, Roy Sigurd Karlsbakk wrote: > On 2. juni. 2009, at 15.46, kschw...@embraer.com.br wrote: > > >> Hi, >> >> I am newbie on rsync. >> I want to push files from a rsync repository on a Linux machine >> (hostname=myserver) to some Windows machines (hostname=mydesktopn, where n >> is a sequence number to identify the Windows PC) to force updates of the >> files into C:\mypath\to\files. >> Is there any way to do that? Or is it impossible and I need to content >> pulling the files instead of pushing them. >> > > > This would probably be easier to do with a pull. Install cygwin with rsync > and ssh, script up whatever you want, and add it to windows' "scheduled > tasks". Out of curiosity, why do you do this instead of just sharing mypath > on Samba? > > > *I* do exactly the sort of thing kschwarz describes. Perhaps it will be useful for me (also) to answer these questions. I rarely use cygwin because I find it heavy and fragile. I'm willing to believe that my own unhappy experience with cygwin is unrepresentative of its value in general; perhaps it works great most of the time, in most contexts. I don't rely on Samba because I have situations where I also don't like to install Samba, and moreover the Windows host is frequently disconnected, and unable to reach the Linux-based datacenter. I summarize: the configuration kschwarz had in mind requires less installation and configuration, at least for me. Others will already assume Samba and/or cygwin, and might justly come to a quite different conclusion. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: How to push files from Linux to Windows
On 2. juni. 2009, at 15.46, kschw...@embraer.com.br wrote: Hi, I am newbie on rsync. I want to push files from a rsync repository on a Linux machine (hostname=myserver) to some Windows machines (hostname=mydesktopn, where n is a sequence number to identify the Windows PC) to force updates of the files into C:\mypath\to\files. Is there any way to do that? Or is it impossible and I need to content pulling the files instead of pushing them. This would probably be easier to do with a pull. Install cygwin with rsync and ssh, script up whatever you want, and add it to windows' "scheduled tasks". Out of curiosity, why do you do this instead of just sharing mypath on Samba? roy -- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 r...@karlsbakk.net http://blogg.karlsbakk.net/ -- I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er et elementært imperativ for alle pedagoger å unngå eksessiv anvendelse av idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og relevante synonymer på norsk. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
How to push files from Linux to Windows
Hi, I am newbie on rsync. I want to push files from a rsync repository on a Linux machine (hostname=myserver) to some Windows machines (hostname=mydesktopn, where n is a sequence number to identify the Windows PC) to force updates of the files into C:\mypath\to\files. Is there any way to do that? Or is it impossible and I need to content pulling the files instead of pushing them. Could someone help on this? Klaus This message is intended solely for the use of its addressee and may contain privileged or confidential information. All information contained herein shall be treated as confidential and shall not be disclosed to any third party without Embraer?s prior written approval. If you are not the addressee you should not distribute, copy or file this message. In this case, please notify the sender and destroy its contents immediately. Esta mensagem é para uso exclusivo de seu destinatário e pode conter informações privilegiadas e confidenciais. Todas as informações aqui contidas devem ser tratadas como confidenciais e não devem ser divulgadas a terceiros sem o prévio consentimento por escrito da Embraer. Se você não é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste caso, por favor, notifique o remetente da mesma e destrua imediatamente a mensagem.-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
* <[EMAIL PROTECTED]> [24/08/2005 1153EDT]: [...] > .testing2:5=grwx > > So, it appears that the colon is the problem here. Ya, 'cause windows might get confused and think it's a reference to a drive letter. -- SA Valaran Corp GPG: 0xEC705AE9 I put the sh in IT. pgpO4Os36UEto.pgp Description: PGP signature -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
Did some testing on XP Pro here with WordPad. I was able to successfully create and save the following files: .testing.txt .testing2,5=grwx.txt .testing2;5;@=grwx.12345.txt .testing2;[EMAIL PROTECTED] .testing2;5=grwx.txt However, I was *not* able to save the following file due to an invalid filename: .testing2:5=grwx So, it appears that the colon is the problem here. - Original Message - From: "John Jablonski" <[EMAIL PROTECTED]> To: "Tim Conway" <[EMAIL PROTECTED]> Cc: "Brent Blayney" <[EMAIL PROTECTED]>; Sent: Wednesday, August 24, 2005 11:08 AM Subject: Re: Linux to Windows Hmmm. Oddly (?) enough, you can make a ".FILE" using a dos prompt (cmd), but not using the win GUI. RMB->Create new->Text file on your desktop (or anywhere using windows explorer) and try and create a file named ".dotfile". You can't do it (in XP-pro anyways). -john Tim Conway wrote: In case cygwin was doing some filename mapping, I tried it in cmd: C:\DOCUME~1\ADMINI~1\t>edit .dotfile C:\DOCUME~1\ADMINI~1\t>del .dotfile C:\DOCUME~1\ADMINI~1\t>echo dot >.dotfile 08/24/2005 08:55 AM . 08/24/2005 08:55 AM .. 08/24/2005 08:55 AM 6 .dotfile -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
John Jablonski wrote: Hmmm. Oddly (?) enough, you can make a ".FILE" using a dos prompt (cmd), but not using the win GUI. RMB->Create new->Text file on your desktop (or anywhere using windows explorer) and try and create a file named ".dotfile". You can't do it (in XP-pro anyways). This is just an example of one of the many hard-coded string match traps in Windows Explorer that bear little relation to the capabilities of the file system. If i remember it correctly, the characters \ / : * ? " < > | are restricted at a filesystem level, rather than by explorer. You can create a file .test in dos/cygwin and select it in explorer and press f2 to rename it. Explorer will accept the existing name, but whine at you if you try to call it something else, like .test2 Terry. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
Hmmm. Oddly (?) enough, you can make a ".FILE" using a dos prompt (cmd), but not using the win GUI. RMB->Create new->Text file on your desktop (or anywhere using windows explorer) and try and create a file named ".dotfile". You can't do it (in XP-pro anyways). -john Tim Conway wrote: In case cygwin was doing some filename mapping, I tried it in cmd: C:\DOCUME~1\ADMINI~1\t>edit .dotfile C:\DOCUME~1\ADMINI~1\t>del .dotfile C:\DOCUME~1\ADMINI~1\t>echo dot >.dotfile 08/24/2005 08:55 AM . 08/24/2005 08:55 AM .. 08/24/2005 08:55 AM 6 .dotfile -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
In case cygwin was doing some filename mapping, I tried it in cmd: C:\DOCUME~1\ADMINI~1>cd t C:\DOCUME~1\ADMINI~1\t>dir Volume in drive C has no label. Volume Serial Number is 5CC0-9DEE Directory of C:\DOCUME~1\ADMINI~1\t 08/24/2005 08:54 AM . 08/24/2005 08:54 AM .. 0 File(s) 0 bytes 2 Dir(s) 28,321,488,896 bytes free C:\DOCUME~1\ADMINI~1\t>edit .dotfile C:\DOCUME~1\ADMINI~1\t>del .dotfile C:\DOCUME~1\ADMINI~1\t>dir Volume in drive C has no label. Volume Serial Number is 5CC0-9DEE Directory of C:\DOCUME~1\ADMINI~1\t 08/24/2005 08:54 AM . 08/24/2005 08:54 AM .. 0 File(s) 0 bytes 2 Dir(s) 28,321,488,896 bytes free C:\DOCUME~1\ADMINI~1\t>echo dot >.dotfile C:\DOCUME~1\ADMINI~1\t>dir Volume in drive C has no label. Volume Serial Number is 5CC0-9DEE Directory of C:\DOCUME~1\ADMINI~1\t 08/24/2005 08:55 AM . 08/24/2005 08:55 AM .. 08/24/2005 08:55 AM 6 .dotfile 1 File(s) 6 bytes 2 Dir(s) 28,321,488,896 bytes free C:\DOCUME~1\ADMINI~1\t>type .dotfile dot C:\DOCUME~1\ADMINI~1\t>del .dotfile C:\DOCUME~1\ADMINI~1\t>ver Microsoft Windows XP [Version 5.1.2600] C:\DOCUME~1\ADMINI~1\t> 73, Tim Conway Unix System Administration Contractor - IBM Global Services - ODCS desk:3039240938 [EMAIL PROTECTED] "Brent Blayney" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 08/24/2005 06:40 AM To cc Subject Linux to Windows 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. > -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Linux to Windows
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. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
Henning Wangerin wrote: On Tue, 2005-08-23 at 21:21, 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 in windows. Sure about that? 1115996480.12736_4.ritalin.autolinq.com,S=7399_2,S 10/05/2005 08:30 PM11,315 1115996632.12736_8.ritalin.autolinq.com,S=11315_2,S 29/06/2005 08:32 AM21,644 1120049850.9412_1520.ritalin.autolinq.com,S=21644_2,S No problem on NTFS or fat32. These were extracted from a tar, not directly created using rsync though. Your files do not have a ":" in the names. Windows cannot handle the char correctly PS - sorry David for the off-list mail ;-) No problem. My mistake for not paying attention in the first place. David -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
On Tue, 2005-08-23 at 21:21, 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 > > in windows. > > > Sure about that? > 1115996480.12736_4.ritalin.autolinq.com,S=7399_2,S > 10/05/2005 08:30 PM11,315 > 1115996632.12736_8.ritalin.autolinq.com,S=11315_2,S > 29/06/2005 08:32 AM21,644 > 1120049850.9412_1520.ritalin.autolinq.com,S=21644_2,S > No problem on NTFS or fat32. These were extracted from a tar, not > directly created using rsync though. Your files do not have a ":" in the names. Windows cannot handle the char correctly PS - sorry David for the off-list mail ;-) -- Henning Wangerin <[EMAIL PROTECTED]> -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
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. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
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 in windows. -john Gary Thomson wrote: Cygwin comes with rsync which might help with your problem, cheers Gaz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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! Sure about that? E:\SPAM\ham-dv-20050629\ham-dv-20050629>dir Volume in drive E has no label. Volume Serial Number is 429E-1A63 Directory of E:\SPAM\ham-dv-20050629\ham-dv-20050629 23/08/2005 03:17 PM . 23/08/2005 03:17 PM .. 13/05/2005 10:03 AM 7,399 1115996480.12736_4.ritalin.autolinq.com,S=7399_2,S 10/05/2005 08:30 PM11,315 1115996632.12736_8.ritalin.autolinq.com,S=11315_2,S 29/06/2005 08:32 AM21,644 1120049850.9412_1520.ritalin.autolinq.com,S=21644_2,S 29/06/2005 04:03 AM21,830 1120049963.16372_7.ritalin.autolinq.com,S=21830_2,S 23/06/2005 04:02 AM19,870 1120051518.2545_16.ritalin.autolinq.com,S=19870_2,S 13/06/2005 07:23 AM10,752 1120051556.2545_21.ritalin.autolinq.com,S=10752_2,S 13/06/2005 03:54 AM20,450 1120051560.2545_22.ritalin.autolinq.com,S=20450_2,S 10/06/2005 03:54 AM24,911 1120051587.2545_23.ritalin.autolinq.com,S=24911_2,S 08/06/2005 03:55 AM26,722 1120051587.2545_24.ritalin.autolinq.com,S=26722_2,S 29/06/2005 10:03 AM 3,780 1120053970.29600_6.ritalin.autolinq.com,S=3780_2,S 10 File(s)168,673 bytes 2 Dir(s) 29,018,013,696 bytes free E:\SPAM\ham-dv-20050629\ham-dv-20050629> No problem on NTFS or fat32. These were extracted from a tar, not directly created using rsync though. David -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
On Tue, 23 Aug 2005 11:08:13 -0700, John Jablonski <[EMAIL PROTECTED]> 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 in windows. Perhaps rsync needs a destination filename mangling regexp option? I suppose you'd also want one for source filenames so you can rsync in the opposite direction, even though if you're not careful you won't get symmetry... -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Linux to Windows
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] Web: http://www.deluxestitcher.com -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
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! -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Linux to Windows
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! -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html