certify
07-31-2001, 11:37 AM
I got a error after this TAR command? What should i do to correct it?
tar -cvfz tarfilename.tar.gz directoryname
web/sun/index.shtml
web/sun/java2/
web/sun/java2/books.shtml
web/sun/java2/cramnotes.shtml
web/sun/java2/exam.shtml
web/sun/java2/index.shtml
web/sun/java2/java2-cramnotes.pdf
web/dump.sql
web/z
tar: Error exit delayed from previous errors
[admin@www home]$
certify
07-31-2001, 11:45 AM
Originally posted by teck
try tar -zxvf blah.tar.gz
Will that syntax allow me to keep all the file permissions?
Try it. If not, you can always rm the dir.
certify
07-31-2001, 12:00 PM
Here is what I've done
tar -cvfz certify.tar.gz web
and this is what I've get
-rw-rw-r-- 1 admin home 96163840 Jul 31 11:04 z
Any clues?
Sorry, I thought you were trying to untar something, not tar a directory. Try this command.
tar -czvf certify.tar.gz web
certify
07-31-2001, 01:10 PM
Thanks, it worked. :)
Now I FTP to my new server and I type the command get certify.tar.gz
226 Transfer complete.
ftp> get certify.tar.gz
local: certify.tar.gz remote: certify.tar.gz
200 PORT command successful.
550 certify.tar.gz: No such file or directory
ftp>
What is the problem?
The Prohacker
07-31-2001, 01:31 PM
do a full path:
GET /home/username/certify.tar.gz
certify
07-31-2001, 01:47 PM
Samething it still won't work.. :(
Make sure you are in the right dir. Do a 'ls' in ftp to see if the file is there. If not, do a 'cd ..' to go up a dir and 'ls' again. Once you find the file, then 'get' it.
certify
08-01-2001, 12:41 AM
Thanks got it working now. :)