Create a file package

Create a file package to deploy files to multiple hosts in your cluster.

  1. Plan how the files will be installed on each target host.
    1. Determine which files should be in the file package.
    2. Determine where the files go on each target host.
    3. Decide what install commands need to be run on each target host.
  2. Create a temporary staging directory to contain the file package.

    For example, create a directory called staging.

  3. Copy all required files to the staging directory, placing them in subdirectories to match their final location on the target host.

    For example, if you are assembling the application package on Linux/UNIX, and Windows hosts,

    • /staging/root/files1/*

    • /staging/root/files2/*

    • /staging/deployment.xml

    • /staging/linuxinst.sh

    • /staging/linuxuninst.sh

    • /staging/solinst.sh

    • /staging/soluninst.sh

    • /staging/wininst.bat

    • /staging/winuninst.bat

  4. Compress all the files in the staging directory into a file package.

    When compressing the files, consider the following:

    • Use relative paths and do not include the staging directory itself in the package.

    • rsdeploy supports .tar.Z, .tar.gz, .tar.zip, .tgz, .taz, .tar, .jar, .gz, and .zip files by starting a command-line utility to extract the file package. However, if the file package will be deployed on Windows target hosts, avoid using the tar format unless you installed a tar utility on all Windows hosts.

Related concepts
File package deployment configuration file
File package deployment scripts