Ubuntu: rSync without git subdirectory

Ubuntu: rSync without git subdirectory
Previously I blogged about a good backup/sync tool rSync.

While using it, I faced some problems. It replaced my .git repository and there by affected my git repo settings.
I found a way to exclude sync'ing some files/folders. For this we have to use --exclude option. To exclude git sub-directory:
rsync -a --exclude='.git/'
 And to include some specific files, (Eg: 'c' files)
rsync -a --include='*.c/'

Source

0 comments:

Post a Comment

Popular Labels

Featured Post (TOP)

Flickr Images

Follow Me on Facebook.com

Follow on Google+

Recent Posts

AD (728x60)

Pages

Powered by Blogger.

Labels

Followers

Popular Posts

Popular Posts

Subscribe Via Email

Sign up for our newsletter, and well send you news and tutorials on web design, coding, business, and more! You'll also receive these great gifts: