Looking at the man-page for tar it's stated that --exclude=PATTERN
will " exclude files, given as a PATTERN ". I'm not sure if PATTERN is explained in more detail somewhere else, but why does the user have to supply a separate --exclude
option for every directory or file? For example,
tar cvzf backup.tar.gz / --exclude=/home,/sys,/proc
as opposed to
tar cvzf backup.tar.gz / --exclude=/home --exclude=/proc --exclude=/sys