patch: teaching dump(8) to change tapes

Frode Nordahl frode at nordahl.net
Tue Feb 3 14:56:49 PST 2004


Hello,

Wrote a small and simple patch to teach dump(8) to change tapes via a 
external script.

This sure helps me, not sure if it's ready for or even wanted for 
commit though :)

I think using a script for this is wise because there is a myriad of 
tape robot systems out there, pair that with a myriad of different 
sysadmins with a myriad different backup strategies, and you got a 
situation impossible to map in a generic program such as dump, let them 
sh or perl it themselves.

Any comments?

Adds "-F /some/where/script" as an option.

The script gets device name and current volume number passed on the 
command line.

Name of the option and arguments to the script are inspired by the GNU 
counterpart (as of the man page).  If we didn't think of it first, 
let's at least make it compatible :)

mvh,
Frode

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump.patch
Type: application/octet-stream
Size: 3715 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040203/f25b5e26/dump-0001.obj


More information about the freebsd-current mailing list