Rsync mémo

A good way to Rsync files from ( excluding ‘._*’ files on my mac, you may need to exclude .svn files) :
rsync -avh --progress --exclude='._*' SRC_DIRECTORY DST_DIRECTORY

-v : verbose
-h : human readable
–progress : progress …
-a :

-a, –archive archive mode; same as -rlptgoD (no -H)

Moreover the -n option may be useful to preview the rsync results.
More options in the man-page ;-)

Tags: bonne pratiques, rsync, sysadmin, tips

Related posts