cdrestore(1)
π CDRESTORE π β cdrestore(1), bestie edition π
okay so before we even get into it: this is the manual page for cdrestore, section 1 of the manual. she's a real one. let's go β¨
β¨ NAME β¨
cdrestore β streaming restore from CD-R(W)/DVD-R(W) π¦
πΈ SYNOPSIS πΈ
cdrestore [-qvDFRTV] [-d device] [-i image] [-l size]
[-t track] [-c command]
like. that's the whole vibe. now let's unpack her π
π« DESCRIPTION π«
cdrestore is a utility that does streaming restores from CD-R(W)/DVD-R(W) disks. no cap.
and here's the slay part: she's designed to work with any backup tool that can restore from stdin β think tar, cpio, afio, the whole friend group. so if your backup tool eats stdin, cdrestore feeds her. periodt. π
π₯ OPTIONS π₯
she has OPTIONS. many of them. we're listing every single one because that's what a bestie does π
-ddevice β the device name used for reading the backup. (default:/dev/cdrom) πΏ-iimage β enables virtual image mode. the backup stream gets read from the given image file instead. bestie, you have to use this one if you're restoring from a dumped image too. (default: none) π«Ά-lsize β specifies the media size. lowkey important to know: this value is only used to display the free space on the media. that's it. by default the given value is taken as megabytes, but you can append a single letter to pick your unit:kβ kilobytesmβ megabytesgβ gigabytessβ sectors
like 170k, 4488m, 350000s. (default: 650m) π
-ttrack β the number of the data track on the media for reading the backup. (default: none) π―-Tβ enables test mode. the complete restore process runs to test data integrity (includes a CRC checksum test, if available), but no data is output. it's giving "just checking".
NOTE: this only verifies that the data is readable by cdrestore at all. it does not guarantee that your backup software will be able to do a real restore with the data. π read that twice.
-Fβ forcescdrestoreto begin the restore in the middle of a multi-disk set. useful if you lost a disk or one of them is badly damaged.
NOTE: 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. so like, no promises, bestie. π
-Rβ disables the kernel readahead for the CDROM device during the restore process. (seecdbackup(1)Known problems) π§-ccommand β the command that gets executed whenevercdrestoreneeds 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. she receives one argument: the device name passed with-d. which means you can use it to issue commands to the device, like ejecting the media. iconic. (default: use internal diskchange prompt) π-qβ queries the media, prints out the contents, and exits. a little look-see. π-vβ enables verbose mode. she talks more. π-Dβ enables DEBUG output (probably not useful for normal use, ngl). π-Vβ prints out version information and exits. the "who even are you" flag. β
π EXAMPLES π
Query the 700 MB media on /dev/sr0:
cdrestore -d /dev/sr0 -l 700 -q
Restore a tar archive to the current directory from track 2 of a 702 MB media on /dev/scd0:
cdrestore -d /dev/scd0 -l 702 -t 2 | tar xf -
Query the contents of a virtual image:
cdrestore -i /tmp/vimage -l 4488m -q
Check data integrity of track 3 in a virtual image after dumping it to DVD media:
cdrestore -i /dev/dvd -t 3 -T
ate. no crumbs. π
π AUTHORS π
Stefan Huelswitt <s.huelswitt@gmx.de>
the main character who wrote her fr fr π
π¦ SEE ALSO π¦
her sister. go say hi. π
π LICENSE π
Copyright (c) 2000-2012 Craig Condit, Stefan Huelswitt.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- 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.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
and that's the whole page, bestie!! πβ¨π
this manual came to you from Stefan Huelswitt, version 0.7.1, and yeah β it's the cdrestore(1) page, we been knew. go forth and restore. mwah π
ππ¦
π¦ where this page comes from
- debian bookworm: cdbackup 0.7.1-2+b1 Β· BSD-2-Clause
- debian trixie: cdbackup 0.7.1-4 Β· BSD-2-Clause
- ubuntu jammy: cdbackup 0.7.1-1 Β· BSD-2-Clause
- ubuntu noble: cdbackup 0.7.1-2 Β· BSD-2-Clause
- ubuntu questing: cdbackup 0.7.1-4
- ubuntu resolute: cdbackup 0.7.1-5 Β· BSD-2-Clause
- ubuntu stonking: cdbackup 0.7.1-5 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms