LinuxQuestions.org
Help answer threads with 0 replies.
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 08-07-2002, 10:02 PM   #1
n1wil
LQ Newbie
 
Registered: May 2002
Posts: 20

Rep: Reputation: 0
Unhappy Using tar to backup a directory and subdirs


I have been using tar to create backups of my /etc and my /home dirs on my RH 7.3 box. I can't seem to get the command to work anymore. I will paste the output below, could someone please shed some light on this??? Thanks.


[root@linux /]# tar -zcvf /home/* /backup/web.tar.gz
tar: Removing leading `/' from member names
home/a-flag.gif
tar (child): /home/775: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
home/apache.gif
home/banner.jpg
home/beestungme/
home/beestungme/.kde/
home/beestungme/.kde/Autostart/
home/beestungme/.kde/Autostart/.directory
home/beestungme/.gtkrc
home/beestungme/.bash_logout
home/beestungme/.bash_profile
home/beestungme/.bashrc
home/beestungme/index.htm
home/beestungme/.bash_history
home/cableisp.jpg
Broken pipe
[root@linux /]#

what is a "broken pipe"?

What gives here? this used to work.

~ John
 
Old 08-07-2002, 10:32 PM   #2
abrakadabra
Member
 
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109

Rep: Reputation: 16
Hi n1wil,
It is my understandig that the sytax for tar is as follows:

$ [command] [switches] [file-to-create] [ file-to-include]
e.g.
$ tar -czvf /temp/backup.tgz /what-ever-files-you-want-to-backup

So if we look at what you are trying to do is to create a /home/* with /backup/wet.tar.gz

you may want to confirm this with the man. That is man tar.

good luck!

 
1 members found this post helpful.
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tar backup TheRealDeal Linux - General 7 02-08-2005 03:25 PM
Using tar for backup. TheRealDeal Linux - General 2 08-10-2004 11:46 PM
tar backup & restore of current directory wishbone42 Linux - General 3 02-09-2004 02:30 AM
tar as backup imsajjadali Red Hat 4 02-07-2004 03:46 PM
tar: How do I backup everything !! grantm Linux - Newbie 3 07-30-2003 02:41 PM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration