ArcShell

arcshell_pkg.sh

Reference

pkg_show

Returns the working file and connection details if they have been set.

> pkg_show

pkg_set

Sets the file you will be working with.

> pkg_set "package_file"
# package_file: A tar or compressed (.gz or .Z) tar file containing a single top level directory and it's contents.

pkg_unset

Unset the ssh connection and file you are working with.

> pkg_unset

pkg_dir

Create a compressed archive file of a directory.

> pkg_dir [-exclude "X"] [-saveto "X"] [directory=$(pwd)]
# -exclude: A list of directories to exclude from the package.
# -saveto: Directory to write the file to.
# directory: Directory to package in the file.

pkg_ssh_copy

Copy the working package file to a directory on a remote node.

> pkg_ssh_copy ["node, alias, or group"] ["target_directory"]

pkg_ssh_mount

Mount a tar(.gz or .Z) file “as” a target directory over ssh.

> pkg_ssh_mount [-ssh "X"] [-force,-f] [-package,-p "X"] ["target_directory"]
# -ssh: SSH connection.
# -force:
# -package:
# target_directory: Target to mount the file "as" not "to".

pkg_sync

Sync a package to a directory on a remote node.

> pkg_sync [-ssh "X"] [-delete,-d] [-package,-p "X"] "target_directory"
# -ssh: SSH connection. Can be a node, alias, or group.
# -delete: Delete non-matching files from the target.
# -package: Package file.
# node, alias, or group:
# target_directory: Directory to mount the package as.

pkg_list

Return the list of known packages.

> pkg_list ["regex"]
# regex: Filter results to those matching regular expression.