RSync and translation

tim.conway at tim.conway at
Wed Aug 28 08:52:00 EST 2002


You can script it, iterating over the files as needed.
You'll need to use '/' instead of '\', even if you are going to a MS 
machine.  Rsync will handle that translation just fine.

You'll have to do something like this (change the words "directory" to 
match the path containing the items of interest.  Replace "options" with 
the appropriate options string to do what you want - probably "-az".
cd directory
initials=`ls |cut -c1 |sort|uniq`
for initial in $initials
                rsync --options ${initial}* boxz:$initial
This approach is, of course, only useable from the source system.  To pull 
from directory to A,B,C,etc., you'd just use the alphabet as your 
$initials, and put up with errors when you request non-matching patterns.

I must mention that it takes only about 5 minutes (I just timed it) to 
completely scan the rsync man page, at the end of which, one would note 
that there is no "--sort-to-destination-directory-based-on-initial" 

Tim Conway
tim.conway at
303.682.4917 office, 303.921.0301 cell
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, caesupport2 on AIM
"There are some who call me.... Tim?"

Roger Davenport <convivialdingo at>
Sent by: rsync-admin at
08/27/2002 04:19 PM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        RSync and translation

Yeah or Nay...

I have a directory like this on box Y...

and I want rsync to transfer and translate this
on box Z

Without altering the original directory.  Can this be

Thanks, Roger

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
To unsubscribe or change options:
Before posting, read:

More information about the rsync mailing list