Directory compare
Note to self
Quick directory compare:
rsync -rlDnv --delete <inDir>/ <outDir> # using timestamps
rsync -rlDunv --delete <inDir>/ <outDir> # skip newer files in outDir
rsync -rlDInv --delete <inDir>/ <outDir> # ignoring timestamps (size only)
rsync -rlDcnv --delete <inDir>/ <outDir> # using checksum
with -a
instead of -rlD
checks also owner, group and permissions
do not forget the trailing slash to refer to its content.