Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Z and gz files.(be sure the files will be uncompressed correctly from another server),.

Manuales
Super Advisor

Z and gz files.(be sure the files will be uncompressed correctly from another server),.

Hi,
i have several files as .Z and .gz
i need to move them o another unix server.
they are thousands of files.
I need to be sure that once the files have been move they will be uncompressed successfully using uncompress and gunzip commands.
How can i be sure that they will be uncompressed correctly?
what do i have to review in both operating systems? both are unix.
Do i have to revie the version of the progrmas? what else? how?


please let me know.
Thanks in advance.
6 REPLIES
Court Campbell
Honored Contributor

Re: Z and gz files.(be sure the files will be uncompressed correctly from another server),.

Just copy one of each file over and try and uncompress, or gunzip (gzip -d), them. If it works you should be fine. This really isn't an issue. If you are that worried, take a backup first.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Manuales
Super Advisor

Re: Z and gz files.(be sure the files will be uncompressed correctly from another server),.

ok, i did the test and worked ...
Manuales
Super Advisor

Re: Z and gz files.(be sure the files will be uncompressed correctly from another server),.

ok, i did the test and worked ...
what another thing do i have to review?
Court Campbell
Honored Contributor

Re: Z and gz files.(be sure the files will be uncompressed correctly from another server),.

Review what? It worked, now move the files.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Patrick Wallek
Honored Contributor

Re: Z and gz files.(be sure the files will be uncompressed correctly from another server),.

If you really want to be anal about this, do a cksum of ALL files on the source server before you copy and then do another cksum of all the files on the destination server after the copy. Then compare the cksum values for all the files. If the files copied successfully then the cksums will match.

This could be done via a script relatively easily.

It should not matter about the versions of the programs.
Steven Schweda
Honored Contributor

Re: Z and gz files.(be sure the files will be uncompressed correctly from another server),.

> It should not matter about the versions of
> the programs.

Generally, no, but if you have any files
larger than 2GB, you might see some problems
with some older programs.

> both are unix.

"UNIX" (or "unix") is not a complete
description of anything.

I'd probably make a "tar" archive of
everything, copy that to the destination
system, and unpack it there.

> i have several files as .Z and .gz

> I need to be sure that once the files have
> been move they will be uncompressed
> successfully [...]

If the files were not already compressed, and
I wanted them uncompressed at the
destination, I'd probably compress the "tar"
archive, not the original files.

Are you planning to uncompress the files at
the destination, or are you just worried
about compatibility between "compress" and
"gzip" on the different ("unix") systems?

A person who was really worried about the
data might copy them to the destination, then
copy them back and compare those copies
against the originals.