cdbackup.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
nathan@2
     1
.TH "cdbackup" "1" "0.6.3" "Stefan Hülswitt" ""
nathan@0
     2
.SH "NAME"
nathan@0
     3
.LP 
nathan@0
     4
cdbackup \- Streaming backup to CD\-R(W)
nathan@0
     5
.SH "SYNOPSIS"
nathan@0
     6
.LP 
nathan@2
     7
cdbackup [\-mvDVX] [\-d \fIdevice\fP] [\-r \fIscsi\-dev\fP] [\-s \fIspeed\fP]
nathan@0
     8
         [\-p \fInum\fP] [\-l \fIsize\fP] [\-a \fIlabel\fP] [\-c \fIcommand\fP]
nathan@0
     9
         [\-\- \fIcdrecord\-options\fP]
nathan@0
    10
.SH "DESCRIPTION"
nathan@0
    11
.LP 
nathan@0
    12
cdbackup is a utility to make streaming backups to CD\-R(W) disks. It's designed to work with any backup tool which writes the backup to stdout (like tar/cpio/afio).
nathan@0
    13
.LP 
nathan@2
    14
\fINOTE:\fR this program REQUIRES that a recent version of \fBcdrecord\fR(1) is present in the PATH.
nathan@0
    15
.LP 
nathan@2
    16
\fIWARNING!\fR When using this program under Linux, be sure not to use dump on a mounted
nathan@2
    17
filesystem. This has a high potential for creating corrupted backups. As of kernel version
nathan@2
    18
2.4.19, this has not been fixed and it may not be fixed at all.
nathan@2
    19
You can read Linus statement about this at <http://search.alphanet.ch/cgi\-bin/search.cgi?max_results=10&type=long&msgid=Pine.LNX.4.21.0104270953280.2067\-100000@penguin.transmeta.com&domain=ml\-linux\-kernel>
nathan@0
    20
.SH "OPTIONS"
nathan@0
    21
.LP 
nathan@0
    22
.TP 
nathan@0
    23
\fB\-d\fR \fIdevice\fP
nathan@0
    24
The device name which is used for reading things like the TOC from a (partly written) media.
nathan@0
    25
.br 
nathan@0
    26
(default: /dev/burner)
nathan@0
    27
nathan@0
    28
.TP 
nathan@0
    29
\fB\-r\fR \fIscsi\-device\fP
nathan@2
    30
The scsi device which is passed to \fBcdrecord\fR(1) (via dev=\fIscsi\-device\fP). Must be given as three, comma seperated number: \fIscsibus\fR,\fItarget\fR,\fIlun\fR.
nathan@0
    31
.br 
nathan@0
    32
(default: none)
nathan@0
    33
nathan@0
    34
.TP 
nathan@0
    35
\fB\-s\fR \fIspeed\fP
nathan@2
    36
The writing speed which is passed to \fBcdrecord\fR(1) (via speed=\fIspeed\fP).
nathan@0
    37
.br 
nathan@0
    38
(default: 4)
nathan@0
    39
nathan@0
    40
.TP 
nathan@0
    41
\fB\-p\fR \fInum\fP
nathan@0
    42
The number of sectors (of 2048 byte) to use for padding (see \fBcdrecord\fR(1) padsize).
nathan@0
    43
.br 
nathan@0
    44
(default: 15)
nathan@0
    45
nathan@0
    46
.TP 
nathan@0
    47
\fB\-X\fR
nathan@2
    48
Enables the use of CDROM XA2 mode in \fBcdrecord\fR(1). By default CDROM mode 1 is used. The default is possibly causing problems during restore on certain kernel version/CDROM hardware combinations at the end of the last session on a media. Sony drives doesn't support CDROM XA 2 mode (see \fBcdrecord\fR(1) \-multi).
nathan@0
    49
nathan@0
    50
.TP 
nathan@0
    51
\fB\-l\fR \fIsize\fP
nathan@0
    52
The media size in megabytes. This value is used to calculate how much data can be stored on the media.
nathan@0
    53
.br 
nathan@0
    54
(default: 650)
nathan@0
    55
nathan@0
    56
.TP 
nathan@0
    57
\fB\-a\fR \fIlabel\fP
nathan@0
    58
A text label to identify the backup set. The first 32 characters of this string are save with the backup.
nathan@0
    59
.br 
nathan@0
    60
(default: "CDBackup Track")
nathan@0
    61
nathan@0
    62
.TP 
nathan@0
    63
\fB\-c\fR \fIcommand\fP
nathan@0
    64
The command which is executed whenever cdbackup needs to request a new media in multi\-disk mode. This command (or script) should prompt the user and return after the recording 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.
nathan@0
    65
.br 
nathan@0
    66
(default: use internal diskchange prompt)
nathan@0
    67
nathan@0
    68
.TP 
nathan@0
    69
\fB\-m\fR
nathan@0
    70
Enables multi\-disk mode. When the current media is filled, a new media is requested (see option \fB\-c\fR) and the backup is continued. Backups can only be continued to empty media, this means you cannot insert a partly filled media for continuation.
nathan@0
    71
nathan@0
    72
.TP 
nathan@0
    73
\fB\-v\fR
nathan@0
    74
Enables verbose mode.
nathan@0
    75
nathan@0
    76
.TP 
nathan@2
    77
\fB\-D\fR
nathan@2
    78
Enables DEBUG output (probably not usefull for normal use).
nathan@2
    79
nathan@2
    80
.TP 
nathan@0
    81
\fB\-V\fR
nathan@0
    82
Prints out version information and exits.
nathan@0
    83
nathan@0
    84
.TP 
nathan@0
    85
\fB\-\-\fR \fIcdrecord\-options\fP
nathan@2
    86
Pass following options to \fBcdrecord\fR(1).
nathan@0
    87
.SH "EXAMPLES"
nathan@0
    88
.LP 
nathan@0
    89
To create a tar archive of /home and
nathan@0
    90
output it to a 700 MB CD\-R(W) on /dev/scd0 (scsi device 2,0):
nathan@0
    91
.IP 
nathan@0
    92
tar cvf \- /home | cdbackup \-d /dev/scd0 \-r 2,0 \-l 700 \-a "Test Backup"
nathan@0
    93
nathan@0
    94
.LP 
nathan@0
    95
To create a tar archive of /usr and output it to a series (multi\-disk mode) of 650 MB CD\-R(W) on /dev/sr1 (scsi device 1,4,0) with writting speed 12 and verbose output:
nathan@0
    96
.IP 
nathan@0
    97
tar cf \- /usr | cdbackup \-d /dev/sr1 \-r 1,4,0 \-s 12 \-m \-v
nathan@2
    98
.SH "KNOWN PROBLEMS"
nathan@2
    99
.LP 
nathan@2
   100
Certain combinations of CDROM drivers and kernel versions are causing a problem when restoring data. The restore process aborts with an read error close to the end of the session, while the data on the media is perfectly good.
nathan@2
   101
.LP 
nathan@2
   102
All CDR sessions written in track\-at\-once mode (which is unavoidable for multisessions) end in at least two unreadable runout sectors (for additional information refer to the file README.copy from the cdrecord package). As the kernel does some readahead on the device, it stumbles over these unreadable sectors before reaching the actual end of data.
nathan@2
   103
.LP 
nathan@2
   104
Some drivers are reporting to syslog but doesn't pass the error to the application, while others make the application fail. From user feedback, it seems that pure SCSI setups are mostly working fine, while ide\-scsi setups are likely to fail.
nathan@2
   105
.LP  
nathan@2
   106
The author isn't able to provide a full solution, but some hints which may help:
nathan@2
   107
.TP 
nathan@2
   108
1.
nathan@2
   109
Update to a recent kernel.
nathan@2
   110
.TP 
nathan@2
   111
2.
nathan@2
   112
Disable kernel readahead with option \-R when restoring.
nathan@2
   113
.TP 
nathan@2
   114
3.
nathan@2
   115
Increase the padsize with option \-p. Use values >= 128.
nathan@2
   116
.TP 
nathan@2
   117
4.
nathan@2
   118
Use option \-X if your writer supports this (Sony drives doesn't supports this mode).
nathan@2
   119
.LP 
nathan@2
   120
Please contact the author if you can contribute additional information about the problem.
nathan@0
   121
.SH "AUTHORS"
nathan@0
   122
.LP 
nathan@0
   123
Stefan Hülswitt <huels@iname.com>
nathan@0
   124
.SH "SEE ALSO"
nathan@0
   125
.LP 
nathan@0
   126
\fBcdrestore\fR(1), \fBcdrecord\fR(1)
nathan@0
   127
.SH "LICENSE"
nathan@0
   128
Copyright (c) 2000\-2002 Craig Condit, Stefan Hülswitt.
nathan@0
   129
nathan@0
   130
Redistribution and use in source and binary forms, with or without
nathan@0
   131
modification, are permitted provided that the following conditions are met: 
nathan@0
   132
nathan@0
   133
.TP 
nathan@0
   134
1.
nathan@0
   135
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
nathan@0
   136
.TP 
nathan@0
   137
2.
nathan@0
   138
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.
nathan@0
   139
nathan@0
   140
.LP 
nathan@0
   141
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
nathan@0
   142
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
nathan@0
   143
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
nathan@0
   144
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
nathan@0
   145
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
nathan@0
   146
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
nathan@0
   147
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
nathan@0
   148
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
nathan@0
   149
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
nathan@0
   150
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
nathan@0
   151
SUCH DAMAGE.