UNIX / Linux Dump Command Exclude Directories / Files

Posted on in Categories , , , , , , , , , , last updated June 20, 2009

I‘m using dump command to backup file systems to tape and remote server. However, I’m not able to find any option that will allow me to exclude files or directories from backup. How do I force UNIX / Linux / FreeBSD dump command to exclude selected files (such as /var/cache or /usr/basejails) which I don’t want to backup?