william@syma.sussex.ac.uk (William Craven) (05/02/90)
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@syma.sussex.ac.uk Computing Service University of Sussex Falmer, Brighton BN1 9QJ United Kingdom
mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E) (05/03/90)
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 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/