Rsync: copy files but not .svn directories

rsync -n –exclude .svn -av /PATH/TO/SOURCE/DIR/* /PATH/TO/DEST/DIR/

rsync –exclude .svn -av /PATH/TO/SOURCE/DIR/* /PATH/TO/DEST/DIR/

The first command will similulate the copy (useful to test). The second command will actually execute the sync.

Post a Comment

Your email is never published nor shared. Required fields are marked *