Archive Exclusion Tips

Tar

# Create with exclusion of Osx and backup files.
tar -cvf [ArchiveFile.tar.bz2] [Path2Archive] --exclude="._*" --exclude=".svn" --exclude=".DS_Store" --exclude="*.bak" --exclude="*.~"

Zip

# Create with exclusion of Osx and backup files.
zip -r [ArchiveFile.zip] [Path2Archive] -x *.- *.bak *~ *.svn */\.DS_Store