The code you wrote in your first post:
A quote from 'man tar':
tar cvpfz backup.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys
As far as I am able to understand, that means that the file in your example will be named z, and not backup.tgz. I have also tried exactly this command, with both gzip and bzip2 compression (z and j falgs), and the file names are z (for gzip) and j( for bzip2), not backup.tgz/backup.tar.bz2.
-f, --file [HOSTNAME:]F
use archive file or device F (default "-", meaning stdin/stdout)
If i change the command to something like this:
everything works fine. The error message that says 'tar: exit delayed from previous errors' also disapperars.
tar cvpzf backup.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys
By the way: Check the comand for the bzip2 compression. It excludes backup.tgz, and not backup.tar.bz2 as it should do.