LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   tar backup errors (https://www.linuxquestions.org/questions/slackware-14/tar-backup-errors-803951/)

mkoco 04-24-2010 11:26 AM

tar backup errors
 
When backing up my root partition, I am getting the following errors with tar:

Code:

.
..
...

/bin/readlink
/bin/vdir
/bin/ping
/bin/sort
/bin/uname
/bin/getopt
/bin/zforce
/bin/sha224sum
/bin/tsort
/bin/which
/bin/sha512sum
/bin/red
/bin/md5sum
/bin/znew
tar: Exiting with failure status due to previous errors

Here is my partition table:
Code:

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root              16G  11G  4.0G  73% /
/dev/sda5              68G  42G  24G  65% /home
tmpfs                1.3G    0  1.3G  0% /dev/shm
/dev/sda1              26G  20G  6.3G  76% /win
/dev/sdb1            466G  305G  162G  66% /mnt/hd

And the command I am running:
Code:

# tar --exclude win --exclude mnt --exclude home --exclude tmp -cvzf root-04242010.tar.gz /
... in the directory /mnt/hd/backups/greypine

The failure code is 2, or least that's the value of $? when tar exits.

Other than its pretty non-descriptive. Backups are important, so how can I investigate this? I've repeated the same thing 4 times with the same results, it always fails in the same file: /bin/znew.

cola 04-24-2010 11:55 AM

Quote:

Originally Posted by mkoco (Post 3946397)
When backing up my root partition, I am getting the following errors with tar:

Code:

.
..
...

/bin/readlink
/bin/vdir
/bin/ping
/bin/sort
/bin/uname
/bin/getopt
/bin/zforce
/bin/sha224sum
/bin/tsort
/bin/which
/bin/sha512sum
/bin/red
/bin/md5sum
/bin/znew
tar: Exiting with failure status due to previous errors

Here is my partition table:
Code:

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root              16G  11G  4.0G  73% /
/dev/sda5              68G  42G  24G  65% /home
tmpfs                1.3G    0  1.3G  0% /dev/shm
/dev/sda1              26G  20G  6.3G  76% /win
/dev/sdb1            466G  305G  162G  66% /mnt/hd

And the command I am running:
Code:

# tar --exclude win --exclude mnt --exclude home --exclude tmp -cvzf root-04242010.tar.gz /
... in the directory /mnt/hd/backups/greypine

The failure code is 2, or least that's the value of $? when tar exits.

Other than its pretty non-descriptive. Backups are important, so how can I investigate this? I've repeated the same thing 4 times with the same results, it always fails in the same file: /bin/znew.

http://ubuntuforums.org/showthread.p...=how+to+backup

Hangaber 04-24-2010 11:56 AM

Error code 2 = "No such file or directory" or "File not found"

Just as a test, does it also fail if you add --ignore-failed-read ?


All times are GMT -5. The time now is 04:58 PM.