Is it possible to stream the content of a file using rsync to stdout instead of placing it into a file?
You could just cat it? On 28 Aug 2009, at 03:57, Mag Gam wrote:> Is it possible to stream the content of a file using rsync to stdout > instead of placing it into a file? > -- > 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 > > -- > This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com
On Thu, 2009-08-27 at 22:57 -0400, Mag Gam wrote:> Is it possible to stream the content of a file using rsync to stdout > instead of placing it into a file?No. Consider rdiff, which lets you call each of the three steps of the delta-transfer algorithm from a script. Or if you explain your use case further, I might have more ideas. -- Matt
Basically, I am trying to read a file on the network without taking up all of my bandwidth. Typically, I rsync the file very slowly with bwlimits and do a tail -f | grep "foo" Instead of copying the whole file, I rather use some sort of pipe. thats all On Fri, Aug 28, 2009 at 2:23 PM, Matt McCutchen<matt at mattmccutchen.net> wrote:> On Thu, 2009-08-27 at 22:57 -0400, Mag Gam wrote: >> Is it possible to stream the content of a file using rsync to stdout >> instead of placing it into a file? > > No. ?Consider rdiff, which lets you call each of the three steps of the > delta-transfer algorithm from a script. ?Or if you explain your use case > further, I might have more ideas. > > -- > Matt > >