Antonino Sidoti <[email protected]> writes:

> Hello,
>
> I am using openrsync to copy some data to cloud based share and I am
> using ‘-trv’ as my switches. I want to pipe out the verbose contents
> to a file but it will not collect any data and is always zero bytes.
>
> e.g
>
> openrsync -trv --exclude “myfile” --delete /mydir/ 1234:Test > dump
>
> Is there something wrong with how I am using openrsync? The file ‘dump’ 
> contains no data.

the fact that

$ openrsync ... > dump

still logs the output to the terminal should be a clue that maybe the
redirect is wrong.

openrsync logs on stderr, so you need to redirect that

$ openrsync ... 2> dump

> Thanks
>
> ---
> Antonino Sidoti

Reply via email to