rsync
To sync the contents of 
dir1 to dir2 on the same system, type:rsync -r dir1/ dir2
The -r option means recursive, which is necessary for directory syncing.
We could also use the -a flag instead:
rsync -a dir1/ dir2
Comments
Post a Comment