Dump/Restore with shell script
William Craven
william at syma.sussex.ac.uk
Thu May 3 01:34:09 AEST 1990
We are running DYNIX 3.0.15 (~= 4.2BSD) on a Sequent Symmetry S81. We
want to do incremental dumps across disk partitions. That is, we wish
to do dumps of the form:
dump 1df 100000 - /user1 | (cd /backup; restore xf -)
We want to do this as a background process during the wee small hours of
the day, so a script of some kind, fired off by crontab, is to be used.
The problem is, that "restore" after completing the task asks the question
add mode for '.' [yn] ?
How does one answer this question from within a script non-
interactively in view that stdin for /etc/restore is already being
used by dump ?
It has been pointed out to me that it is not necessary to restore the
files but keep the dump stored in a single file and hence save time as
restore is very slow. However the question posed may be occur in other
applications.
Any help would be appreciated!
William Craven
UNIX Systems william at syma.sussex.ac.uk
Computing Service
University of Sussex
Falmer, Brighton BN1 9QJ
United Kingdom
More information about the Comp.unix.questions
mailing list