LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2010, 11:26 AM   #1
mkoco
Member
 
Registered: Feb 2008
Location: US, New Jersey
Distribution: Slackware
Posts: 88

Rep: Reputation: 17
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.
 
Old 04-24-2010, 11:55 AM   #2
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 64
Quote:
Originally Posted by mkoco View Post
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
 
Old 04-24-2010, 11:56 AM   #3
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 154

Rep: Reputation: 47
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TAR backup dnaqvi Linux - General 41 04-14-2010 06:15 PM
How to backup using tar emymcse Linux - Server 1 09-21-2008 07:29 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
Cannot take tar backup nevillemonteiro Linux - Enterprise 1 08-25-2006 03:21 AM
Using tar for backup. TheRealDeal Linux - General 2 08-10-2004 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration