Method 2: Create a Compressed Copy of the Oracle Grid Infrastructure Home Using the -X Option
Create a file that lists the unnecessary files in the Oracle Grid Infrastructure home. For example, list the following file names, using the asterisk (*) wildcard, in a file called excludeFileList:
Use the tar command or Winzip to create a compressed copy of the Oracle Grid Infrastructure home. For example, on Linux and UNIX systems, run the following command to archive and compress the source Oracle Grid Infrastructure home:
tar cpfX - excludeFileList Grid_home | compress -fv > temp_dir/gridHome.tar.Z
Note:
Do not use the jar utility to copy and compress the Oracle Grid Infrastructure home.