Method 2: Create a Compressed Copy of the Oracle Grid Infrastructure Home Using the -X Option

  1. 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:
    Grid_home/host_name
    Grid_home/log/host_name
    Grid_home/gpnp/host_name
    Grid_home/crs/init/*
    Grid_home/cdata/*
    Grid_home/crf/*
    Grid_home/network/admin/*.ora
    Grid_home/root.sh*
    *.ouibak
    *.ouibak1
    
  2. 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.