Banging my head on this one...
I used tar -cvpzf file.tar.gz
to compress a complete directory.
I move the file to another server and i try to decompress the directory where i have copied the archive. Can't make it work.
bash-3.2$ tar -xvpzf news.tar.gz .
tar: gzip: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: .: Not found in archive
tar: Error exit delayed from previous errors
Anyone ?
gz using option -xvzf : This command extracts files from tar archived file. tar.
Untar single specified directory or file in Linux This option is used to untar any file in our current directory or inside the specified directory with the -C option. The command is as follows: $ tar -xvf file. tar -C file's path in the directory.
Your tar can't find gzip. If you don't have gzip, you can't make a .gz file. You should look for a gzip executable on your system. What kind of system is it?
In the meantime, you could leave off the "z" and just transfer a .tar file. It will be bigger, but at least you'll be able to move your data to the other server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With