Formatting rsync output

Ashley M. Kirchner ashley at pcraft.com
Sun Jul 18 23:19:08 GMT 2004


    When RSYNC runs in -v mode, I get the following output on, for 
example, /etc:

RSYNCing /etc ...    ( <--- this line is generated by the shell script)
building file list ... done
./
backup-daily.sh
mail/statistics
mtab
wrote 26720 bytes  read 68 bytes  17858.67 bytes/sec
total size is 4176073  speedup is 155.89

RSYNCing /root ...   ( <--- this line is generated by the shell script)
building file list ... done
wrote 387 bytes  read 20 bytes  814.00 bytes/sec
total size is 42133  speedup is 103.52

etc., etc.


I'm wondering if there's a way to format that data somehow.  Really all 
I want to do is insert a tab infront of each RSYNC generated line.  So 
the formatting with the rest of the script output is a bit nicer to 
read.  Is this possible...somehow?

-- 
W | I haven't lost my mind; it's backed up on tape somewhere.
  +--------------------------------------------------------------------
  Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.





More information about the rsync mailing list