Dump/Restore with shell script

Michael J. Chinni, SMCAR-CCS-E mchinni at pica.army.mil
Fri May 4 00:02:43 AEST 1990


William,

You wrote:
 > 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 ?

The answer is to do
	dump 1df 100000 - /user1 | (cd /backup; restore rf -)

Note the restore options: use r instead of x.
This option assumes a "yes" answer without ever asking that question. We used
to have the same problem until I found this answer in this list last year.

Good Luck,

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
			    Michael J. Chinni
	 US Army Armament Research, Development, and Engineering Center
                       Picatinny Arsenal, New Jersey  
     ARPA: mchinni at pica.army.mil     UUCP: ...!uunet!pica.army.mil!mchinni
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



More information about the Comp.unix.questions mailing list