Preserve timestamp with rsync

During your rhce training you must have learned about rsync command.

Did you know you can use -a option with rsync to preserve the timestamp of the files.

rsync -a option does the following:

-Recursive mode
-Preserves symbolic links
-Preserves permissions
-Preserves timestamp
-Preserves owner and group

rsync -a source target

Here is a simple snapshot from my machine.

rsync command preserving timestamp

rsync command preserving timestamp

Advertisements