.\" @(#)db-edit.8 1.0 21 April 1992 Steve Romig, CIS, The Ohio State University .TH DB-EDIT 8 "21 APRIL 1992" .SH NAME db-edit \- edit/view parts of the backup database in a crude way .SH SYNOPSIS I didn't want to do it, but here it is - a database editor. This isn't something that you should have to use very often - I have only used it once to recreate some entries that got overwritten when one of the sequence files got deleted by an fsck. Now that I've fixed .B clean-db to handle problems like that, that shouldn't be necessary again. .B db-edit is a set of nested loops: the outer loop asks you for the name of the database and its type (see backuplib.perl), and the inner loop asks you for commands. You exit either loop with a blank line. There are 3 commands currently: .B show, delete and .B edit. The .B show command prints the contents of entries from the selected database. By default it shows all of the entries, sorted by keyword. You can limit the output to certain entries by listing their keys after the .B show command: .B show 123 456 would display the values of entries 123 and 456. The .B delete command deletes the entries specified by the keys that you give. It will first display the value of the entry and then ask you to confirm that you really and truly want to delete the entry. Finally, you can use the .B edit command to edit a database entry. First the current value will be displayed, and then you are given the chance to enter a new list of keys and values. You enter each key/value pair as a single line of text, with the key first, some whitespace, and then the value. If the value contains space it will be "reconstituted" after the key is separated from it. End your list with a blank line. I don't recommend making a habit of editing your databases. If you find yourself doing it alot, there might be something wrong with the backup system, in which case I'd appreciate it if you'd contact me so I can fix the bug. .SH BUGS .LP This isn't very user friendly. I don't want it to be.