2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2007-11-11 22:54:56 +00:00
|
|
|
vos_restore - Converts an ASCII dump file into an AFS volume
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
|
|
|
|
2009-10-08 18:31:00 +01:00
|
|
|
B<vos restore> S<<< B<-server> <I<machine name>> >>>
|
|
|
|
S<<< B<-partition> <I<partition name>> >>>
|
|
|
|
S<<< B<-name> <I<name of volume to be restored>> >>>
|
|
|
|
S<<< [B<-file> <I<dump file>>] >>>
|
|
|
|
S<<< [B<-id> <I<volume ID>>] >>>
|
|
|
|
S<<< [B<-overwrite> (abort | full | incremental)] >>>
|
|
|
|
[B<-offline>] [B<-readonly>]
|
|
|
|
S<<< [B<-creation> (dump | keep | new)] >>>
|
|
|
|
S<<< [B<-lastupdate> (dump | keep | new)] >>>
|
|
|
|
[B<-nodelete>] S<<< [B<-cell> <I<cell name>>] >>>
|
|
|
|
[B<-noauth>] [B<-localauth>]
|
2013-06-20 23:45:05 +01:00
|
|
|
[-verbose] [B<-encrypt>] [B<-noresolve>]
|
|
|
|
S<<< [B<-config> <I<config directory>>] >>>
|
|
|
|
[B<-help>]
|
2009-10-08 18:31:00 +01:00
|
|
|
|
|
|
|
B<vos res> S<<< B<-s> <I<machine name>> >>>
|
|
|
|
S<<< B<-p> <I<partition name>> >>>
|
|
|
|
S<<< B<-na> <I<name of volume to be restored>> >>>
|
|
|
|
S<<< [B<-f> <I<dump file>>] >>>
|
|
|
|
S<<< [B<-i> <I<volume ID>>] >>>
|
|
|
|
S<<< [B<-ov> (a | f | i)] >>>
|
|
|
|
[B<-of>] [B<-r>]
|
|
|
|
S<<< [B<-cr> (d | k | n)] >>>
|
|
|
|
S<<< [B<-la> (d | k | n)] >>>
|
|
|
|
[B<-nod>] S<<< [B<-c> <I<cell name>>] >>>
|
2013-06-20 23:45:05 +01:00
|
|
|
[B<-noa>] [B<-lo>] [B<-v>] [B<-e>] [B<-nor>]
|
|
|
|
S<<< [B<-co> <I<config directory>>] >>>
|
|
|
|
[B<-h>]
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
</div>
|
|
|
|
|
2005-12-08 12:14:33 +00:00
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The B<vos restore> command converts a volume dump file previously created
|
|
|
|
with the B<vos dump> command from ASCII into the volume format appropriate
|
|
|
|
for the machine type indicated by the B<-server> argument, and restores it
|
|
|
|
as a read/write volume to the partition named by the B<-partition>
|
|
|
|
argument on that machine. The Volume Server assigns the volume name
|
|
|
|
indicated with the B<-name> argument, and resets the volume's creation
|
|
|
|
timestamp to the time at which the restore operation begins (the creation
|
|
|
|
timestamp is stored in the volume header and reported in the C<Creation>
|
|
|
|
field in the output from the B<vos examine> and B<vos listvol> commands.)
|
|
|
|
|
|
|
|
Use the B<-file> argument to name the dump file, or omit the argument to
|
|
|
|
provide the file via the standard input stream, presumably through a
|
|
|
|
pipe. The pipe can be named, which enables interoperation with third-party
|
|
|
|
backup utilities.
|
|
|
|
|
|
|
|
As described in the following list, the command can create a completely
|
|
|
|
new volume or overwrite an existing volume. In all cases, the full dump of
|
2005-12-08 12:14:33 +00:00
|
|
|
the volume must be restored before any incremental dumps. If there are
|
2005-12-09 14:48:56 +00:00
|
|
|
multiple incremental dump files, they must be restored in the order they
|
|
|
|
were created.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
To create a new read/write volume, use the B<-name> argument to specify a
|
|
|
|
volume name that does not already exist in the Volume Location Database
|
|
|
|
(VLDB), and the B<-server> and B<-partition> arguments to specify the new
|
|
|
|
volume's site. It is best to omit the B<-id> argument so that the Volume
|
|
|
|
Location (VL) Server allocates a volume ID automatically. Do not include
|
|
|
|
the B<-overwrite> argument, because there is no existing volume to
|
|
|
|
overwrite.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
To overwrite an existing volume at its current site, specify its name and
|
2005-12-09 14:48:56 +00:00
|
|
|
site with the B<-name>, B<-server>, and B<-partition> arguments. The
|
|
|
|
volume retains its current volume ID number unless the B<-id> argument is
|
|
|
|
provided. Specify the value C<f> or C<i> for the B<-overwrite> argument to
|
|
|
|
indicate whether the dump file is full or incremental, respectively.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
To overwrite an existing volume and move it to a new site, specify its
|
2005-12-09 14:48:56 +00:00
|
|
|
name and the new site with the B<-name>, B<-server>, and B<-partition>
|
|
|
|
arguments. The volume retains its current volume ID number unless the
|
|
|
|
B<-id> argument is provided. The volume is removed from its original
|
|
|
|
site. Specify the value C<f> for the B<-overwrite> argument to indicate
|
|
|
|
that the dump file is a full dump (it is not possible to restore an
|
|
|
|
incremental dump and move the volume at the same time).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If the volume named by the B<-name> argument already exists and the
|
|
|
|
B<-overwrite> argument is omitted, the command interpreter produces the
|
|
|
|
following prompt:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Do you want to do a full/incremental restore or abort? [fia](a):
|
|
|
|
|
|
|
|
Respond by entering one of the following values:
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
C<f> if restoring a full dump file
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
C<i> if restoring an incremental dump file
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
C<a> or Return to cancel the restore operation
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=head1 CAUTIONS
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If the B<-file> argument is omitted, the issuer must provide all other
|
|
|
|
necessary arguments, because the standard input stream is unavailable for
|
|
|
|
responding to the command interpreter's prompts for missing
|
|
|
|
information. In particular, the issuer must provide the B<-overwrite>
|
|
|
|
argument if overwriting an existing volume.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-server> <I<server name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Identifies the file server machine onto which to restore the
|
2005-12-09 14:48:56 +00:00
|
|
|
volume. Provide the machine's IP address or its host name (either fully
|
|
|
|
qualified or using an unambiguous abbreviation). For details, see
|
|
|
|
L<vos(1)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-partition> <I<partition name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Identifies the partition (on the file server machine specified by the
|
2005-12-09 14:48:56 +00:00
|
|
|
B<-server> argument) onto which to restore the volume. Provide the
|
|
|
|
partition's complete name with preceding slash (for example, F</vicepa>)
|
|
|
|
or use one of the three acceptable abbreviated forms. For details, see
|
|
|
|
L<vos(1)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-name> <I<name of volume>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Specifies the name under which to restore the volume. It can be up to 22
|
|
|
|
characters long, but cannot end with a C<.readonly> or C<.backup>
|
|
|
|
extension. If the volume already exists, it is overwritten subject to the
|
|
|
|
value of the B<-overwrite> argument.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-file> <I<dump file>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Names the dump file to restore. Incomplete pathnames are interpreted
|
|
|
|
relative to the current working directory. Omit this argument to provide
|
|
|
|
the dump file via the standard input stream.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-id> <I<volume ID>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the volume ID number to assign to the restored volume.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-overwrite> (a | f | i)
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies which type of dump file is being restored when overwriting an
|
|
|
|
existing volume. Provide one of the following values:
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
C<a> to terminate the restore operation.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
C<f> if restoring a full dump file.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
C<i> if restoring an incremental dump file. This value is not acceptable
|
|
|
|
if the B<-server> and B<-partition> arguments do not indicate the volume's
|
|
|
|
current site.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
This argument is mandatory if the B<-file> argument is not provided.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2009-10-08 18:31:00 +01:00
|
|
|
=item B<-offline>
|
|
|
|
|
|
|
|
Leaves the new volume flagged as off-line in the volume database.
|
|
|
|
|
|
|
|
=item B<-readonly>
|
|
|
|
|
2020-08-28 21:19:29 +01:00
|
|
|
Flags the new volume as read-only in the volume database. This option
|
|
|
|
is prohibited if an RW volume is already defined in the VLDB entry.
|
2009-10-08 18:31:00 +01:00
|
|
|
|
2011-06-18 01:35:17 +01:00
|
|
|
=item B<-creation> <I<dump | keep | new>>
|
|
|
|
|
|
|
|
Set the creation date of the new volume to the timestamp from the
|
|
|
|
dumped volume (dump), from the target volume, if there is one (keep),
|
|
|
|
or generate a new one using the current time (new).
|
|
|
|
|
|
|
|
=item B<-lastupdate> <I<dump | keep | new>>
|
|
|
|
|
|
|
|
Set the last updated date of the new volume to the timestamp from the
|
|
|
|
dumped volume (dump), from the target volume, if there is one (keep),
|
|
|
|
or generate a new one using the current time (new).
|
|
|
|
|
2009-10-08 18:31:00 +01:00
|
|
|
=item B<-nodelete>
|
|
|
|
|
|
|
|
This option is available in OpenAFS clients 1.4.7 or
|
|
|
|
later and 1.5.31 or later. This option can be used with OpenAFS server
|
|
|
|
versions 1.4.1 or later and 1.5.0 or later.
|
|
|
|
|
2013-06-30 03:06:51 +01:00
|
|
|
=include fragments/vos-common.pod
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
The following command restores the contents of the dump file
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
F</afs/example.com/common/dumps/terry.dump> to the F</vicepc> partition on the
|
|
|
|
file server machine C<fs3.example.com>. The restored volume is named
|
2005-12-09 14:48:56 +00:00
|
|
|
C<user.terry>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
% cd /afs/example.com/common/dumps
|
|
|
|
% vos restore -file terry.dump -server fs3.example.com -partition c \
|
2005-12-09 14:48:56 +00:00
|
|
|
-name user.terry
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The issuer must be listed in the F</usr/afs/etc/UserList> file on the
|
|
|
|
machine specified with the B<-server> argument and on each database server
|
|
|
|
machine. If the B<-localauth> flag is included, the issuer must instead be
|
|
|
|
logged on to a server machine as the local superuser C<root>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2009-08-22 02:12:39 +01:00
|
|
|
L<restorevol(1)>,
|
2005-12-08 12:14:33 +00:00
|
|
|
L<vos(1)>,
|
|
|
|
L<vos_dump(1)>,
|
|
|
|
L<vos_examine(1)>,
|
|
|
|
L<vos_listvol(1)>
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|