Hi,
On AIX 1 7 00CDDA774C00
when archivine we get
tar: 0511-180 aaa.xfd is not a valid tar file type
What might be the cause?
Is that file locked?
How to verify? How to make it free?
Thanks and regard.
Hi,
On AIX 1 7 00CDDA774C00
when archivine we get
tar: 0511-180 aaa.xfd is not a valid tar file type
What might be the cause?
Is that file locked?
How to verify? How to make it free?
Thanks and regard.
are you trying to read/create/append .... ?
show the commands being used please.
Thank you.
Here it is:
$ nohup tar -cZf /`hostname`/xxx/xxx/yy.tar.Z * > /`hostname`/xxx/xxx/log_yy_$(date +"%Y%m%d").log &
Regards.
I don't understand the error message, but it seems to be the AIX native tar.
IMHO it does not understand the Z
option.
Try to pipe the output stream (created tar data) to an explicit gzip
:
tar cf - 2> /$(hostname)/xxx/xxx/log_yy_$(date +"%Y%m%d").log | gzip > /$(hostname)/xxx/xxx/yy.tar.gz *
.gz
is the convention for gzip
, .Z
is for compress
Thank you.
documentation ....
https://www.ibm.com/docs/en/aix/7.1?topic=t-tar-command
Restriction: Archives created with the -Z flag can be restored only on AIX 6.1 or later releases
And the given document says for the Z option
Archives the Encrypted File System (EFS) information of encrypted files or directories.
This is unlike GNU tar where the Z option means a gzip compression.
Isn't it lowercase z
in GNU tar?
-z, --gzip, --gunzip, --ungzip filter the archive through gzip
-Z, --compress, --uncompress filter the archive through compress
Ah yes, thanks for the correction.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.