Using rsync to Mirror Directories
rsync -vaz /path/to/dirA/ /path/to/dir/B
Copy all files from dirA to dirB
rsync -vaz /path/to/dirA /path/to/dir/B
Copy dirA with all files to dirB
rsync -vaz --exclude=subdirC/ --exclude=*.tmp /path/to/dirA /path/to/dirB
Copy all files from dirA to dirB without sundir named "subdirC" and files *.tmp






