magento
asked on
tar syntax help
Hi,
I am using AIX unix system.
I see the below snippet in one of our code.
Can you please advise what the tar - . and compress - > means in the below code.
filename=test.tar.Z
cd /home/testdir
tar -cpf - . | compress - > $filename
Thanks
I am using AIX unix system.
I see the below snippet in one of our code.
Can you please advise what the tar - . and compress - > means in the below code.
filename=test.tar.Z
cd /home/testdir
tar -cpf - . | compress - > $filename
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, woolmilkporc, I remembered it is AIX, but I don't know whether extras like gtar or gzip have been installed in magento's environment...yet.
Apart from that, I'm not up-to-date with what recent AIX tar versions can do, but 15 years ago I needed to install gtar on AIX 3 to use '-z', which is why I said "(also try gtar)".
Apart from that, I'm not up-to-date with what recent AIX tar versions can do, but 15 years ago I needed to install gtar on AIX 3 to use '-z', which is why I said "(also try gtar)".
ASKER
Thanks for all your help.
"tar" as shipped with the OS does neither support "-z" nor "-j", and "gzip" as well as "bzip2" must be installed first, either from the so-called "toolbox" CD or from some third party provider, where "perzl.org" is by far the best (and free) resource. GNU tar can be obtained there, too.
gzip: http://www.perzl.org/aix/index.php?n=Main.Gzip
bzip2: http://www.perzl.org/aix/index.php?n=Main.Bzip2
tar: http://www.perzl.org/aix/index.php?n=Main.Tar