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.

Categories:

Updated:

Leave a comment

Comments are moderated. Your email address is neither published nor stored, only an md5 hash of it. Required fields are marked with *

Loading...