updater(1M) updater(1M)
NAME
updater - update files between two machines
SYNOPSIS
updater [key] local remote ...
DESCRIPTION
updater updates files between two machines.
One of the following key letters must be included:
t Take files from the remote machine, updating the local
machine.
p Put files from the local machine onto the remote machine,
updating the remote machine.
d List the difference between files on the local and remote
machines.
The following key letters are optional:
u Update a file only if it exists on both machines; this is
the default condition.
r Replace a file if it did not exist on the destination
machine.
local refers to the local directory name.
remote refers to the remote directory names. Only one
remote name can be specified if the p (put) key is
specified.
ALGORITHM
Open /dev/tty0 to the remote machine.
Stty the local port and send a stty command to the remote
machine to condition both ends of the connection.
Send a cd remote ; sumdir . | sort +2 > /tmp/rXXXXX to
remote machine for each remote system; cd local ; sumdir . |
sort > /tmp/lXXXXX for local machine.
Wait for remote to complete.
Take /tmp/rXXXXX.
Do a comparison between the local and the union of the
remotes:
Exists on remote only:
If both the t and r keys are specified, take the file;
Page 1 (last mod. 1/15/87)
updater(1M) updater(1M)
otherwise list the file.
Exists on local only:
If both p and r keys are specified, put the file; otherwise
list the file.
Exist on both but different:
If t key is specified, take the file.
If p key is specified, put the file.
If d key is specified, list the file.
Same:
nothing
EXAMPLE
updater d . .
uses /dev/tty0 to communicate with a remote machine, and
compares directories on the remote and local systems.
FILES
/usr/bin/updater
Page 2 (last mod. 1/15/87)