Rsync command and verbose log
Brian McKee
brian.mckee at gmail.com
Thu Apr 29 20:26:58 UTC 2010
On Thu, Apr 29, 2010 at 1:20 PM, Vijay Shanker Dubey
<vijay.shad at gmail.com> wrote:
> Hi,
> I am creating a script to sync my important documents between two system. I
> want my script to generate a log file for the last action. can you suggest
> me a way to achieve this.
> Question: If I execute the rsync command with -v flag, it will print a lot
> of messages on the console. Is there any way. So, I can redirect these logs
> to a file?
Stick | tee logfile.txt on the end of the command and you get it on
the screen and in that file both.
Alternatively man 'logger'
Brian
More information about the ubuntu-users
mailing list