LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-03-2005, 10:12 AM   #1
jekd
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Rep: Reputation: 0
tar problem


Hi,

Actually I want to take a back of root partition, which is under SuSE linux.

I used following commad

tar cvzf <backup_dir>/tar_root.tgz / --exclude /mnt --exclude /proc --exclude <backup_dir> --exclude /tmp

I got following error at the end.

"tar: Error exit delayed from previous errors". Is this successfull tar or there is some issue with it.

Could anybody please help me on this.

Thanks in advance.

jekd
 
Old 06-03-2005, 10:18 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Nope, that wasn't sucessful.

Did you actually enter that exact command? If so, then I'm not surprised it failed. tar cvzf ..... isn't correct, it should be tar -czvf .....

Presumably, you didn't actually type <backup_dir>, you did put in a real directory name here?

If you just made a typo while posting here, then run the command again without the v option (tar -czf). This will stop tar from displaying the name of every file it processes, so you should be able to see any earlier error messages.

Apologies if I'm stating the obvious a bit with these, but I've found that very often it's the simplest mistakes that are the hardest to spot.
 
Old 06-03-2005, 11:06 AM   #3
jekd
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
travelluk,

Thanks for your response. I was not using - (hyphen) like "tar -cvzf". But I have specified a specific directory for backup dir.

I tried with two ways

"tar -cvzf" as well as "tar -czf", In both cases it is giving same error.

Thanks
jekd
 
Old 06-03-2005, 11:23 AM   #4
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
OK, without the v, what's the full output you get? This should contain some kind of error message in addition to the one you've already stated.

Could it be some kind of permissions problem? You will almost certainly need to be root to run that command.
 
Old 06-03-2005, 01:41 PM   #5
jekd
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I am running as root only and a bunch of lines (ignored..File shrank by 2560 bytes; padding with zeros..etc) appearing before this error.
 
Old 06-06-2005, 02:59 AM   #6
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
I've got to say I don't really know what could be causing that. You could try running without the z option, so that the output file isn't compressed. This will tell you whether it's tar or gzip that's causing the problem.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:41 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
Open Source Consulting | Domain Registration