LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2004, 11:07 AM   #1
Durtdawber
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Problem with tar command...


I am trying to make a backup of my site using the tar command. Below is an example of the command that I enter and the results that I receive. The problem is that the tar begins to get built and then after about 15 minutes it disappears.

Can someone tell me what I need to do to get this to work properly?

root@server [~]# tar czf /home/temp/public_html/backup/files/test.tar.gz --exclude=backup /home/temp/public_html

tar: Removing leading `/' from member names

tar: /home/temp/public_html/axs/log.txt: file changed as we read it

tar: Error exit delayed from previous errors
 
Old 12-28-2004, 12:44 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Hi,

Does test.tar.gz actually exists and is not null afterwards?

Quote:
tar: Removing leading `/' from member names
Unless you explicitly tell tar to use absolute names (-P option), tar will always strip the leading / and tell you that it did. Think before using this option.......

Quote:
tar: /home/temp/public_html/axs/log.txt: file changed as we read it
During the time tar ran one of the files changed. Depending on which file it is you can/cannot ignore this.

Quote:
tar: Error exit delayed from previous errors
Tells you that tar ran with errors (which are shown before this message).

The above explains the first question. If you do have a tar file (test.tar.gz) after all the above, you have a backup that's ok. You can check the contents of this file with tar tzf filename (but you migth already now that).

If you do not end up with a tar file: Any other message (command line and/or logs)?

Hope this helps.
 
Old 12-28-2004, 12:52 PM   #3
Durtdawber
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
test.tar.gz does not exist after the process completes. I can watch the file create and grow in size. At a point that is never exactly the same, the file disappears.

I was able to elimnate all the other error messages that you address above but the file still does not complete and I get no error messages when I run it from the command line.
 
Old 12-28-2004, 01:05 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Hi,

Without any other messages it's kinda hard to find the cause. You can run the command with the v option included (tar vczf ....).

Although I do expect an error if it happens, is your tar file very big?
 
Old 12-28-2004, 01:12 PM   #5
Durtdawber
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I'll try that. I don't know what you would consider big but website it is trying to backup is about 7GB in size.
 
Old 12-28-2004, 01:25 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
That is big.

Have had lots of 2G+ problems using unix, haven't had to tar 7G on a linux box yet so don't know if this can pose a problem. I also read somewhere that GNU tar keeps running with files bigger then 2G, but I don't know how much more it can handle.

[edit]
Try feeding tar chuncks that are 2G, see if it works and keep increasing. I will tell you if the size is a problem.
[/edit]

Last edited by druuna; 12-28-2004 at 01:26 PM.
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
problem with tar command tiang_ono Linux - Newbie 3 06-17-2004 03:36 PM
tar command problem:urgent imsajjadali Linux - General 1 01-30-2004 05:50 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 AM.

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