- Consistently specify -dryrun and -n across various subcommands.
Many did not list -n, some listed -n but no -dryrun, and some
listed -noexecute instead.
- backup_volrestore: Add missing option -usedump
- backup_deletedump: Add missing options -groupid, -dbonly, -force,
and -portoffset
Change-Id: Iec1c36cba0ad0e61d7e6215c9cba81228b95a81f
Reviewed-on: http://gerrit.openafs.org/10441
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
B<backup deletedump> S<<< [B<-dumpid> <I<dump id>>+] >>>
S<<< [B<-from> <I<date time>>+] >>>
S<<< [B<-to> <I<date time>>+] >>>
- S<<< [B<-port> <I<TC port offset>>] >>>
+ S<<< [B<-portoffset> <I<TC port offset>>] >>>
S<<< [B<-groupid> <I<group ID>>] >>>
- [B<-dbonly>] [B<-force>] [B<-noexecute>] [B<-localauth>]
+ [B<-dbonly>] [B<-force>] [B<-dryrun> | B<-n>] [B<-localauth>]
S<<< [B<-cell> <I<cell name>>] >>>
[B<-help>]
S<<< [B<-p> <I<TC port offset>>] >>>
S<<< [B<-g> <I<group ID>>] >>>
[B<-db>] [B<-fo>] [B<-n>] [B<-l>]
+ [B<-dryrun> | B<-n>]
S<<< [B<-c> <I<cell name>>] >>>
[B<-h>]
Database (except for Backup Database dump records created with the
B<backup savedb> command).
+=item B<-groupid> <I<group id>>
+
+Delete all dumps associated with the given group ID. If B<-from> and B<-to> are
+also given, then we only delete dumps that are both a part of this group ID,
+and fall within the time range specified by B<-from> and B<-to>.
+
+=item B<-dbonly>
+
+If this option is specified, only delete the dump from the budb; do not contact
+the Tape Coordinator at all.
+
+=item B<-force>
+
+By default, we attempt to delete the specified dumps from the Tape Coordinator
+before deleting the dumps from the budb. If the Tape Coordinator operation
+fails, then we do not delete the dumps from the budb. If the B<-force> option
+is given, we will delete the specified dumps from the budb, even if deleting
+the dumps on the Tape Coordinator fails.
+
+=item B<-portoffset> <I<TC port offset>>
+
+Specifies the port offset number of the Tape Coordinator to contact for this
+operation.
+
+=item B<-dryrun> | B<-n>
+
+Prints out information about what actions would be taken to run this command,
+but do not actually perform those actions.
+
=item B<-localauth>
Constructs a server ticket using a key from the local
S<<< [B<-newserver> <I<destination machine>>] >>>
S<<< [B<-newpartition> <I<destination partition>>] >>>
S<<< [B<-extension> <I<new volume name extension>>] >>>
- [B<-dryrun>] [B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
+ [B<-dryrun> | B<-n>] [B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
B<backup di> S<<< B<-s> <I<machine to restore>> >>>
S<<< B<-pa> <I<partition to restore>> >>>
S<<< [B<-po> <I<TC port offset>>+] >>>
S<<< [B<-news> <I<destination machine>>] >>>
S<<< [B<-newp> <I<destination partition>>] >>>
- S<<< [B<-e> <I<new volume name extension>>] >>> [B<-dryrun>] [B<-l>]
+ S<<< [B<-e> <I<new volume name extension>>] >>> [B<-dryrun> | B<-n>] [B<-l>]
S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
=for html
to separate the extension from the name, specify it as the first character
of the string (as in C<.rst>, for example).
-=item B<-dryrun>
+=item B<-dryrun> | B<-n>
Displays a list of the tapes necessary to perform the requested restore,
without actually performing the operation.
S<<< [B<-dump> <I<dump level name>>] >>>
S<<< [B<-portoffset> <I<TC port offset>>] >>>
S<<< [B<-at> <I<date/time to start dump>>+] >>>
- [B<-append>] [B<-n>]
+ [B<-append>] [B<-dryrun> | B<-n>]
S<<< [B<-file> <I<load file>>] >>> [B<-localauth>]
S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
B<backup dump> S<<< [B<-v> <I<volume set name>>] >>>
S<<< [B<-d> <I<dump level name>>] >>>
S<<< [B<-p> <I<TC port offset>>] >>>
- S<<< [B<-at> <I<Date/time to start dump>>+] >>> [B<-ap>] [B<-n>]
+ S<<< [B<-at> <I<Date/time to start dump>>+] >>> [B<-ap>] [B<-dryrun> | B<-n>]
S<<< [B<-f> <I<load file>>] >>> [B<-l>] S<<< [B<-c> <I<cell name>>] >>>
[B<-h>]
named by the B<-file> argument. Optionally include the B<-at> argument to
specify when the B<backup> command interpreter reads the file; otherwise
it reads it immediately. Do not combine the B<-file> argument with the
-command's first three arguments or the B<-append> or B<-n> flags. The
+command's first three arguments or the B<-append> or B<-dryrun> flags. The
commands in the file can include any of the B<backup dump> command's
arguments, including the B<-at> argument to schedule them to run even
later in the future.
To generate a list of the volumes included in a dump, without actually
-dumping them, combine the B<-n> flag with the options to be used on the
+dumping them, combine the B<-dryrun> flag with the options to be used on the
actual command.
=head2 How the Backup System executes a dump operation
Coordinator prompts for insertion of the appropriate tape. Do not combine
this argument with the B<-file> argument.
-=item B<-n>
+=item B<-dryrun> | B<-n>
Displays the names of volumes to be included in the indicated dump,
without actually performing the dump operation. Do not combine this
dump sun4x_55 /sunday1/friday -port 2 -at 04/08/1999 02:00 -append
Do not combine this argument with the B<-volumeset>, B<-dump>,
-B<-portoffset>, B<-append>, or B<-n> options.
+B<-portoffset>, B<-append>, or B<-dryrun> options.
=item B<-localauth>
Starting dump.
-If the issuer includes the B<-n> flag, the output is of the following
+If the issuer includes the B<-dryrun> flag, the output is of the following
form:
Starting dump of volume set '<volume set>' (dump set '<dump level>')
The following command displays the list of volumes to be dumped when the
user dumps the C<sys_sun> volume set at the C</full> dump level.
- % backup dump -volumeset sys_sun -dump /full -n
+ % backup dump -volumeset sys_sun -dump /full -dryrun
Starting dump of volume set 'sys_sun' (dump set '/full')
Total number of volumes: 24
Would have dumped the following volumes:
S<<< B<-volume> <I<volume(s) to restore>>+ >>>
S<<< [B<-extension> <I<new volume name extension>>] >>>
S<<< [B<-date> <I<date from which to restore>>+] >>>
- S<<< [B<-portoffset> <I<TC port offsets>>+] >>> [B<-dryrun>]
+ S<<< [B<-portoffset> <I<TC port offsets>>+] >>> [B<-dryrun> | B<-n>]
S<<< [B<-usedump> <I<specify the dumpID to restore from>>] >>>
[B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
S<<< [B<-d> <I<date from which to restore>>+] >>>
S<<< [B<-po> <I<TC port offsets>>+] >>>
S<<< [B<-u> <I<specify the dumpID to restore from>>] >>>
- [B<-dryrun>] [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
+ [B<-dryrun> | B<-n>] [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
=for html
</div>
If this argument is omitted, the Backup System restores all possible dumps
including the most recently created.
+=item B<-usedump> <I<dumpID>>
+
+Specifies the dumpID of the specific dump to use to restore the volume. If this
+option is not specified, we will find the appropriate dump to restore,
+according to the logic in the B<-date> option.
+
=item B<-portoffset> <I<TC port offest>>+
Specifies one or more port offset numbers (up to a maximum of 128), each
for all dumps. If C<0> is just one of the values in the list, provide it
explicitly in the appropriate order.
-=item B<-dryrun>
+=item B<-dryrun> | B<-n>
Displays the list of tapes that contain the dumps required by the restore
operation, without actually performing the operation.
B<backup volsetrestore> S<<< [B<-name> <I<volume set name>>] >>>
S<<< [B<-file> <I<file name>>] >>>
S<<< [B<-portoffset> <I<TC port offset>>+] >>>
- S<<< [B<-extension> <I<new volume name extension>>] >>> [B<-dryrun>]
+ S<<< [B<-extension> <I<new volume name extension>>] >>> [B<-dryrun> | B<-n>]
[B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
B<backup vols> S<<< [B<-na> <I<volume set name>>] >>>
S<<< [B<-f> <I<file name>>] >>>
S<<< [B<-p> <I<TC port offset>>+] >>>
S<<< [B<-e> <I<new volume name extension>>] >>>
- [B<-dryrun>] [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
+ [B<-dryrun> | B<-n>] [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
=for html
</div>
for all dumps. If C<0> is just one of the values in the list, provide it
explicitly in the appropriate order.
-=item B<-dryrun>
+=item B<-dryrun> | B<-n>
Displays a list of the volumes to be restored if the flag were not
included, without actually restoring them. L</OUTPUT> details the format of