-----BEGIN PGP SIGNED MESSAGE-----

Big Brother tells me that Dean Scothern wrote:
> Hello,
> 
> I'm using a perl wrapper aroung rsync to transfer largish number of files
> without using too much ram. I understand the format of the exclude files now and
> been moderately sucessful. However everynow and again  get naughty files and
> directories that end with a space or newline ;-) How  may  I transfer these
> files. I cannot use the faq method exclusively because I run out of arg space.
> I suppose I could modify rsync to accept a file list from stdin, or I could
> detect the bad files and dirs and do them individually. Any suggestions please?

    Just modify your script to accept standard in:

$ cd backupme ; ls | rsync.pl

rsync.pl:

#!/usr/bin/perl
#
# Consider me pseudocode!
#

while(<>)
 {
  chop;
  system "rsync -rRptl $_ backupuser@backuphost:./backupdir";
 }

    Even better would be to collect several at a time before making the
call to rsync.

- --
"Restore your inalienable human rights.             Jack McKinney
 Vote Libertarian.  http://www.lp.org               http://www.lorentz.com
 http://www.harrybrowne2000.org
F4 A0 65 67 58 77 AF 9B  FC B3 C5 6B 55 36 94 A6    [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBOecAbkZx0BGJTwrZAQF7WQP9Hg1q+v3ri69RqgV4HdQ4PQlGyc7lZ4Bh
ruTxuOVoiUbnEOQzGh5QMk+0w7TKB0o5qTMBbPJo1/g77Ytd9T0rFhMXjxExjZ0A
KuXt+lWQK/jOMtYuKL3RJICs3ejAh4QI84ww7GtigYcT3Iddem5HgIRYwCvWo6Wf
Gj8yU2vJH3M=
=DLlC
-----END PGP SIGNATURE-----

Reply via email to