View previous topic :: View next topic |
Author |
Message |
lowbatt Tux's lil' helper
Joined: 13 Jul 2002 Posts: 83
|
Posted: Sun Aug 04, 2002 12:21 am Post subject: Backing up linux shell script. error from tar also |
|
|
I'm trying to make a shelld script that would backup my /home /var /usr dir's to a tar file. I tried this simple command tar -cZf /root/backup/backup.tgz /home/ and i get this error
tar: Removing leading `/' from member names
tar (child): compress: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
Broken pipe
any idea on what do here? Also anyone already have a good script i could use to do this ? _________________ Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL |
|
Back to top |
|
|
nitro322 Guru
Joined: 24 Jul 2002 Posts: 593 Location: USA
|
Posted: Sun Aug 04, 2002 12:30 am Post subject: |
|
|
Code: | tar jcf /usr/local/backup/backup.tbz2 /home |
worked fine to me. I still got the error about removing the leading '/', but everything was backed up. Maybe compress just can't handle what you're trying to do. Try archiving it with either gzip (-z) or bzip2 (-j) instead (better compression anyway. |
|
Back to top |
|
|
lowbatt Tux's lil' helper
Joined: 13 Jul 2002 Posts: 83
|
Posted: Sun Aug 04, 2002 12:39 am Post subject: |
|
|
nitro322 wrote: | Code: | tar jcf /usr/local/backup/backup.tbz2 /home |
worked fine to me. I still got the error about removing the leading '/', but everything was backed up. Maybe compress just can't handle what you're trying to do. Try archiving it with either gzip (-z) or bzip2 (-j) instead (better compression anyway. | \
Thanks! that worked for me it must have jsut been with the compress I was tryign to use. now what is better compression gzip or bzip2? _________________ Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Aug 04, 2002 1:16 am Post subject: |
|
|
For tar:
Z = compress (Unix compress program that has potential patent encumberances)
z = gzip
j = bzip2
You don't have compress installed. bzip2 should generally give you better compression that gzip. |
|
Back to top |
|
|
lowbatt Tux's lil' helper
Joined: 13 Jul 2002 Posts: 83
|
Posted: Sun Aug 04, 2002 2:26 am Post subject: |
|
|
Naan Yaar wrote: | For tar:
Z = compress (Unix compress program that has potential patent encumberances)
z = gzip
j = bzip2
You don't have compress installed. bzip2 should generally give you better compression that gzip. |
I was thinking along those lines from the error msg but you never know. So I used gzip next time ill try bzip2 _________________ Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL |
|
Back to top |
|
|
|