Bug 234315 - dump(8): Allow noninteractive multi-volume dumps
Summary: 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:
Depends on:
Blocks:
 
Reported: 2018-12-23 21:48 UTC by noah.bergbauer
Modified: 2025-02-28 16:08 UTC (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.85 KB, patch)
2018-12-23 21:48 UTC, noah.bergbauer
no flags Details | Diff
Proposed patch (2.93 KB, patch)
2025-02-28 16:05 UTC, Mark Linimon
no flags Details | Diff
Proposed patch (2.97 KB, patch)
2025-02-28 16:08 UTC, Mark Linimon
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-02-28 16:05:56 UTC
Created attachment 258092 [details]
Proposed patch
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2025-02-28 16:08:25 UTC
Created attachment 258093 [details]
Proposed patch

^Triage: rebase patch, take 2.