The code below will first create a file called Exclude containing the paths to all common document files I wish to exclude from my backup, images, documents etc.
Secondly the tar command will be used to create a compressed tgz containing everything in the given folder and recursive folders excluding the files as detected.