Skip to main content

Posts

Showing posts with the label exclude folder

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