Bug 234315 - [patch] dump(8): Allow noninteractive multi-volume dumps
Summary: [patch] dump(8): Allow noninteractive multi-volume dumps
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-12-23 21:48 UTC by noah.bergbauer
Modified: 2018-12-23 23:42 UTC (History)
0 users

See Also:


Attachments
Proposed patch (2.85 KB, patch)
2018-12-23 21:48 UTC, noah.bergbauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description noah.bergbauer 2018-12-23 21:48:34 UTC
Created attachment 200412 [details]
Proposed patch

Right now dump(8) requires the user to type "yes" into the console whenever it switches to a new volume. This makes sense for tape drives but is a problem when one wants to invoke dump automatically/noninteractively, e.g. from cron(8). The pipecommand (-P) option could be a great solution (just invoke a script that handles all the heavy lifting) but there's no way to turn off the questions. Not even yes(1) can solve this as dump(8) always explicitly reads from /dev/tty instead of stdin.

This patch simply adds a flag to skip the query.