Bash

Sync two folders with commands in Linux

rsync -av --exclude='.git/' --exclude='*.*~' --include='*.org' /home/zw/code/org/ ~/code/siemens/org --delete It puts folder /code/org ’s content into folder /code/siemens/org. useful options -a Do the sync preserving all filesystem attributes -v run verbosely –delete delete the files in target folder that do not exist in the source.