Skip to main content

Logging & Output

Output Flags

FlagOutput TypeUse Case
-vList transferred filesBasic monitoring
-vvList skipped files tooDebugging
-vvvFull protocol debugDeep troubleshooting
--progressPer-file progress barLarge files
-PProgress + partial resumeLarge transfers
--statsSummary statisticsAuditing
--itemize-changesDetailed change codesPrecise change tracking
--log-file=PATHWrite to log fileCron / automation
-qQuiet (errors only)Cron (minimal output)

Commands

# Show progress for large transfers
rsync -avP src/ dest/

# Log to file (for cron jobs)
rsync -av --log-file=/var/log/rsync/backup.log src/ dest/

# Show detailed statistics
rsync -av --stats src/ dest/

# Itemize what changed and why
rsync -av --itemize-changes src/ dest/

# Combine: stats + log + progress
rsync -avP --stats --log-file=/var/log/rsync/transfer.log src/ dest/

# Quiet mode (cron — only show errors)
rsync -aq src/ dest/

Reading --itemize-changes

>f.st...... file.txt # sent file, size+time changed
>f..t...... config.php # sent file, time changed
cd+++++++++ new-dir/ # created directory
*deleting old-file.txt # deleted from dest
PosCharMeaning
1> / <Sent / received
2f / dFile / directory
4sSize changed
5tTimestamp changed
6pPermissions changed
7oOwner changed
8gGroup changed