The code you wrote in your first post:
Code:
tar cvpfz backup.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys
A quote from 'man tar':
-f, --file [HOSTNAME:]F
use archive file or device F (default "-", meaning stdin/stdout)
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.
If i change the command to something like this:
Code:
tar cvpzf backup.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys
everything works fine. The error message that says 'tar: exit delayed from previous errors' also disapperars.
By the way: Check the comand for the bzip2 compression. It excludes backup.tgz, and not backup.tar.bz2 as it should do.
Bookmarks