cdrestore.1
author nathan
Sat, 29 Dec 2007 15:23:49 +0100
branchtrunk
changeset 2 6bcb44b9edb1
parent 0 d85c12073dea
child 4 79da91042fcc
permissions -rw-r--r--
release 0.6.3
     1 .TH "cdrestore" "1" "0.6.3" "Stefan Hülswitt" ""
     2 .SH "NAME"
     3 .LP 
     4 cdrestore \- Streaming restore from CD\-R(W)
     5 .SH "SYNOPSIS"
     6 .LP 
     7 cdrestore [\-qvDFRTV] [\-d \fIdevice\fP] [\-l \fIsize\fP] [\-t \fItrack\fP]
     8           [\-c \fIcommand\fP]
     9 .SH "DESCRIPTION"
    10 .LP 
    11 cdrestore is a utility to make streaming restores from CD\-R(W) disks. It's designed to work with any backup tool which is able to restore from stdin (like tar/cpio/afio).
    12 .SH "OPTIONS"
    13 .LP 
    14 .TP 
    15 \fB\-d\fR \fIdevice\fP
    16 The device name which is used for reading the backup.
    17 .br 
    18 (default: /dev/cdrom)
    19 
    20 .TP 
    21 \fB\-l\fR \fIsize\fP
    22 The media size in megabytes. This value is used to calculate the free space on the media.
    23 .br 
    24 (default: 650)
    25 
    26 .TP 
    27 \fB\-t\fR \fItrack\fP
    28 The number of the data track on the media for reading the backup.
    29 .br 
    30 (default: none)
    31 
    32 .TP 
    33 \fB\-T\fR
    34 Enables test mode. The complete restore process is done to test data integrity, but no data is output.
    35 .br 
    36 \fINOTE:\fR This only verifies that the data is readable by cdrestore at all. This doesn't quaranties that your backup software will be able to do a real restore with the data.
    37 
    38 .TP 
    39 \fB\-F\fR
    40 Forces cdrestore to begin the restore in the middle of a multi\-disk set. This may be usefull if you have lost a disk or a disk is badly damaged.
    41 .br 
    42 \fINOTE:\fR This will most probably start the restore in the middle of a file. It's up to your backup software to sync to the beginning of the next file.
    43 
    44 .TP 
    45 \fB\-R\fR
    46 Disable the kernel readahead for the CDROM device during the restore process.
    47 (see \fBcdbackup\fR(1) Known problems)
    48 
    49 .TP 
    50 \fB\-c\fR \fIcommand\fP
    51 The command which is executed whenever cdrestore needs to request a new media for multi\-disk backups. This command (or script) should prompt the user and return after the device is ready again. The command receives one argument, which is the device name passed with \fB\-d\fR. This can be used to issue commands to the device like ejecting the media.
    52 .br 
    53 (default: use internal diskchange prompt)
    54 
    55 .TP 
    56 \fB\-q\fR
    57 Queries the media, prints out the contents and exits.
    58 
    59 .TP 
    60 \fB\-v\fR
    61 Enables verbose mode.
    62 
    63 .TP 
    64 \fB\-D\fR
    65 Enables DEBUG output (probably not usefull for normal use).
    66 
    67 .TP 
    68 \fB\-V\fR
    69 Prints out version information and exits.
    70 .SH "EXAMPLES"
    71 .LP 
    72 To query the 700 MB media on /dev/sr0:
    73 .IP 
    74 cdrestore \-d /dev/sr0 \-l 700 \-q
    75 
    76 .LP 
    77 To restore a tar archive to the current directory from track 2 of a 702 MB media on /dev/scd0:
    78 .IP 
    79 cdrestore \-d /dev/scd0 \-l 702 \-t 2 | tar xf \-
    80 .SH "AUTHORS"
    81 .LP 
    82 Stefan Hülswitt <huels@iname.com>
    83 .SH "SEE ALSO"
    84 .LP 
    85 \fBcdbackup\fR(1)
    86 .SH "LICENSE"
    87 Copyright (c) 2000\-2002 Craig Condit, Stefan Hülswitt.
    88 
    89 Redistribution and use in source and binary forms, with or without
    90 modification, are permitted provided that the following conditions are met: 
    91 
    92 .TP 
    93 1.
    94 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
    95 .TP 
    96 2.
    97 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    98 
    99 .LP 
   100 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
   101 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   102 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   103 DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
   104 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   105 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   106 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
   107 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   108 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   109 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   110 SUCH DAMAGE.