Returns the working file and connection details if they have been 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.
Unset the ssh connection and file you are working with.
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.
Copy the working package file to a directory on a remote node.
> pkg_ssh_copy ["node, alias, or group"] ["target_directory"]
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".
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.
Return the list of known packages.
> pkg_list ["regex"] # regex: Filter results to those matching regular expression.