Capturing all diagnostic messages to a log file

3 posts / 0 new
Last post
itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Capturing all diagnostic messages to a log file

Hi,
When I run rsync, I re-direct the output to a text file, so that I can review the activity that took place.

However sometimes during an rsync session, errors are encountered that rsync writes to the screen in the CMD session that it is running in, rather than to the log file.

Is there a way to capture these rsync error messages in a log file?

Vaughan

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Capturing all diagnostic messages to a log file

You can redirect both stdout and stderr to a file:

rsync ... rsync parameters... 1>stdout.log 2>stderr.log

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Capturing all diagnostic messages to a log file

Cool.
Thank you.

Cheers,
Vaughan

Release announcements