Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!mephisto!udel!haven!adm!news From: mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E) Newsgroups: comp.unix.questions Subject: Re: Dump/Restore with shell script Message-ID: <23226@adm.BRL.MIL> Date: 3 May 90 14:02:43 GMT Sender: news@adm.BRL.MIL Lines: 30 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@pica.army.mil UUCP: ...!uunet!pica.army.mil!mchinni /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/