cptree LOCAL 24 July 1996
NAME
cptree -- copy a hierarchy (major file tree) to a remote volume
SYNTAX
cptree h=HOST s=SOURCE_DIR d=DEST_DIR [ c=n ]
HOST destination host; remsh must be enabled, .rhosts must be correct
SOURCE_DIR a directory tree in the current working directory
DEST_DIR the remote directory in which SOURCE_DIR will be created
c=n disables inline compression; c=y is the default
Note that no white space (space or tab) is permitted on either side of
the = sign for the command line options.
SYNOPSIS
This script creates a pipeline between 2 hosts (via remsh) and relocates
a directory tree via a tar command at the head and tail of the pipeline.
By default, compress/uncompress are also at either end of the pipeline
to reduce network load (at the expense of some CPU cycles). The process
priority is also reduced on the originating host, for the archive
creation and compression processes. The use of the
tar
command makes this an ideal way for the superuser to relocate user home
directories, since it handles file and directory ownerships properly.
It is the network equivalent of writing a tape on one machine and
reading it on another, but using a direct data stream between the hosts
in place of tape.
EXAMPLES
% == prompt
Copy the directory tree
smith
to
/disk2
on host
rasputin
% cptree h=rasputin s=smith d=/disk2
The same, but with compression disabled; note the arg order independence.
% cptree s=smith h=rasputin c=n d=/disk2
FILES
/usr/local/bin:
cptree csh script, arg parsing with the clever bit at the end
SEE ALSO
tar(1), compress(1)
AUTHORS
RM Venable.
BUGS
You tell me: rvenable@deimos.cber.nih.gov
Information and HTML Formatting Courtesy of:
NHLBI/LBC Computational Biophtsics Section
FDA/CBER/OVRR Biophysics Laboratory