Search This Blog

2014-08-07

Rsync log file output

In order to find out what data will be modified/changed it is necessary to use: --itemize-change and --dry-run to find out what operations are going to be performed on the desired files.

The format for itemize-change is defined in the man page and more easily intepreted using the following table pulled from http://andreafrancia.it/2010/03/understanding-the-output-of-rsync-itemize-changes.html

YXcstpoguax path/to/file
|||||||||||
`----------- the type of update being done::
|||||||||| : file is being transferred to the local host (received).
|||||||||| c: local change/creation for the item, such as:
|||||||||| - the creation of a directory
|||||||||| - the changing of a symlink,
|||||||||| - etc.
|||||||||| h: the item is a hard link to another item (requires --hard-links).
|||||||||| .: the item is not being updated (though it might have attributes that are being modified).
|||||||||| *: means that the rest of the itemized-output area contains a message (e.g. "deleting").
||||||||||
`---------- the file type:
||||||||| f for a file,
||||||||| d for a directory,
||||||||| L for a symlink,
||||||||| D for a device,
||||||||| S for a special file (e.g. named sockets and fifos).
|||||||||
`--------- c: different checksum (for regular files)
|||||||| changed value (for symlink, device, and special file)
`-------- s: Size is different
`------- t: Modification time is different
`------ p: Permission are different
`----- o: Owner is different
`---- g: Group is different
`--- u: The u slot is reserved for future use.
`-- a: The ACL information changed
This schema is based on the contents of the rsync manual.

By default the --log-file=log-file-name paramter will output the --itemize-change output