restorevol
Restore a volume from vos dump to the local file system
- Provided by: openafs-client (Version: 1.6.15-1ubuntu1.1)
- Source: openafs
- Report a bug
Restore a volume from vos dump to the local file system
restorevol
[-file <dump file>]
[-dir <restore dir> ]
[-extension <name extension>]
[-mountpoint <mount point root>]
[-umask <mode mask>] [-verbose]
[-help]
restorevol takes an AFS volume in the format produced by vos dump and restores it to the local file system. Normally, the contents of a volume are maintained by the AFS File Server in an opaque format and copying a volume's raw data does not make it easily accessible. This utility will produce a directory tree that is equivalent to that seen via an AFS client, but without preserving the AFS-specific Access Control Lists (ACLs). It's primary use is to recover data from a volume dump or backup and make it available via a filesystem other than AFS.
The dump output will read from standard input, or from a file if -file is specified.
The restore process is as follows:
Normally, use vos_restore(1) instead of this command. restorevol is a tool of last resort to try to extract data from the data structures stored in a volume dumpfile and is not as regularly tested or used as the normal vos_restore(1) implementation. Using restorevol bypasses checks done by the fileserver(8) and salvager(8).
The mount point root must exist, and the process running the command have read access to that directory, or the command will fail.
The following command restores the contents of the dumpfile in sample.dump to the directory /tmp/sample.2009-05-17, but having all mountpoints inside the volume point to AFS (note that this requires knowledge of where sample is mounted in AFS):
% restorevol -file sample.dump -dir /tmp -extension .2009-05-17 \
-mountpoint /afs/example.org/sample
Restoring volume dump of 'sample' to directory '/tmp/sample.2009-05-17'
The issuer must have read access to the dump file and write access to the directory into which the dump is restored. If the -mountpoint flag is given, the issuer must also have read access to that directory.
Copyright 2009 Steven Jenkins <steven@endpoint.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Steven Jenkins for OpenAFS.