Making a Backup to a CD-RW
Hi all I want to make backups to CD-RW. So i have to do it with the mkisofs prog to create the image. Is it possible that i culd make an exact copy of my files, i mean, that no name is altered after? I tried it but i never got the output i want. I want to backup the /root, /home and the /etc directory into the /root /home and /etc dirs on the CD. I tried this command: mkisofs -R -o /tmp/backup.iso /home=/home/ /root=/root/ /etc=/etc/ but i had errors about dubble files or it merged the files wrong Have somebody a clue Or should i make a tar image first and then a iso image of it and burn this to the CD? cheers, Raffaele -- Raffaele Sandrini <[EMAIL PROTECTED]> Check out the most powerfull Linux desktop at www.kde.org !! Check out the best Linux distribution at www.debian.org (www.linux.org)
Re: Making a Backup to a CD-RW
Raffaele Sandrini wrote: > I want to make backups to CD-RW. Use yacdback: http://freshmeat.net/projects/yacdbak/ It's a collection of bash scripts that use cdrecord(8) and tar(8) to make multi-volume backups of your filesystems. Read the scripts and teach yourself a little about both tools. -- ^chewie
Re: Making a Backup to a CD-RW
Lo, on Monday, February 19, Raffaele Sandrini did write: > Hi all > > I want to make backups to CD-RW. So i have to do it with the mkisofs prog > to create the image. Is it possible that i culd make an exact copy of my > files, i mean, that no name is altered after? I tried it but i never got > the output i want. I want to backup the /root, /home and the /etc > directory into the /root /home and /etc dirs on the CD. I tried this > command: > mkisofs -R -o /tmp/backup.iso /home=/home/ /root=/root/ /etc=/etc/ > but i had errors about dubble files or it merged the files wrong Far as I know, this should have worked. Which errors specifically? Did you mount the resulting image via /dev/loop* and look at the files? > Or should i make a tar image first and then a iso image of it and burn this > to the CD? Unnecessary. If you're interested in doing backups to CD-R(W), I'd recommend cddump. There's not a dpkg, but it's easy enough to install. See http://users.gtn.net/fraserm/cddump.html. Richard
Re: Making a Backup to a CD-RW
On Mon, 19 Feb 2001 17:38:07 -0600 (CST) Richard Cobbe <[EMAIL PROTECTED]> wrote: > If you're interested in doing backups to CD-R(W), I'd recommend cddump. > There's not a dpkg, but it's easy enough to install. See > http://users.gtn.net/fraserm/cddump.html. Thanks, Richard. I downloaded cddump and it works well. However, I can't seem to get it to backup multiple directories. How would I, say, get it backup /home and /etc? I tried 'cddump 0 /etc /home' and it ignored /home. There is nothing in the man page to suggest how it can be done. Any ideas? -- Phillip Deackes Using Progeny Debian Linux
Re: Making a Backup to a CD-RW
I wrote a set of Python scripts that have been working pretty well for me. Input is a list of directories for each cdr and exclusions specified as regular expressions in config files. Output is a bunch of tarred and gzipped archives. The script then moves the archives to one or more cdrs via mkisofs and cdrecord. You have to figure out which directory archives fit best on each disc, but it should be easy to adapt to your environment. It's a work in progress, but it's how I do all my cdr backups. Let me know if you're interested. Steve Cooper Phillip Deackes wrote: > On Mon, 19 Feb 2001 17:38:07 -0600 (CST) > Richard Cobbe <[EMAIL PROTECTED]> wrote: > > > If you're interested in doing backups to CD-R(W), I'd recommend cddump. > > There's not a dpkg, but it's easy enough to install. See > > http://users.gtn.net/fraserm/cddump.html. > > Thanks, Richard. I downloaded cddump and it works well. However, I can't > seem to get it to backup multiple directories. How would I, say, get it > backup /home and /etc? I tried 'cddump 0 /etc /home' and it ignored /home. > There is nothing in the man page to suggest how it can be done. > > Any ideas? > > -- > Phillip Deackes > Using Progeny Debian Linux > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Making a Backup to a CD-RW
On Tue, Feb 20, 2001 at 02:12:09PM -0800, Steve Cooper wrote: > I wrote a set of Python scripts that have been working pretty well for me. > Input > is a list of directories for each cdr and exclusions specified as regular > expressions in config files. Output is a bunch of tarred and gzipped > archives. > The script then moves the archives to one or more cdrs via mkisofs and > cdrecord. > You have to figure out which directory archives fit best on each disc, but it > should be easy to adapt to your environment. > > It's a work in progress, but it's how I do all my cdr backups. Let me know if > you're interested. Could you send me a copy as well? Would save me the time of dreaming it all up myself:) -- groetjes, carel
Re: Making a Backup to a CD-RW
On Tuesday 20 February 2001 07:38, Richard Cobbe wrote: > Lo, on Monday, February 19, Raffaele Sandrini did write: > > Hi all > > > > I want to make backups to CD-RW. So i have to do it with the > > mkisofs prog to create the image. Is it possible that i culd > > make an exact copy of my files, i mean, that no name is altered > > after? I tried it but i never got the output i want. I want to > > backup the /root, /home and the /etc directory into the /root > > /home and /etc dirs on the CD. I tried this command: > > > > mkisofs -R -o /tmp/backup.iso /home=/home/ /root=/root/ > > /etc=/etc/ but i had errors about dubble files or it merged the > > files wrong > > Far as I know, this should have worked. I use option -graft-points [Allow to use graft points for filenames], so I would type: mkisofs -graft-points -R -o /tmp/backup.iso /home/=/home/ \ /root/=/root/ The additional slash after "home" and "root" is just to be sure. I've had problems with the missing second slash. Actually I think it's better "home/=" than "/home=". Don't flame me if I'm wrong.
Re: Making a Backup to a CD-RW
On Tue, 20 Feb 2001, Phillip Deackes wrote: > Thanks, Richard. I downloaded cddump and it works well. However, I can't > seem to get it to backup multiple directories. How would I, say, get it > backup /home and /etc? I tried 'cddump 0 /etc /home' and it ignored /home. > There is nothing in the man page to suggest how it can be done. You can only back up one directory (or directory tree) at a time. Furthermore, everything you back up must be on the same filesystem. And a word of warning: My last 0-level backup did not contain any symbolic links (e.g. /etc/alternatives and /etc/init.d), so when I tried to do a full restore, I had some problems. My impression from poking around the code a bit symlinks are not supported. Good luck, Rich -- From the Desktop of Rich Renomeron Madness takes its toll. Please have exact change.
Re: Making a Backup to a CD-RW
Lo, on Tuesday, February 20, Rich Renomeron did write: > On Tue, 20 Feb 2001, Phillip Deackes wrote: > > > Thanks, Richard. I downloaded cddump and it works well. However, I can't > > seem to get it to backup multiple directories. How would I, say, get it > > backup /home and /etc? I tried 'cddump 0 /etc /home' and it ignored /home. > > There is nothing in the man page to suggest how it can be done. > > You can only back up one directory (or directory tree) at a time. > Furthermore, everything you back up must be on the same filesystem. True, although if they're small enough, you can back multiple filesystems up to the same disk. > And a word of warning: My last 0-level backup did not contain any > symbolic links (e.g. /etc/alternatives and /etc/init.d), so when I tried > to do a full restore, I had some problems. My impression from poking > around the code a bit symlinks are not supported. Check out the c switch, which creates a cpio archive of special files, including symbolic links. I'm a little unclear as to why this is necessary, I must admit. Based on some quick little tests I just performed, mkisofs is capable of generating ISO/RockRidge images which contain symbolic links, hard links, block devices, character devices, FIFOs, and Unix sockets. (Far as I can tell, that's everything.) Perhaps cddump doesn't do this because it generates Joliet images by default? Ah well. At least it works. Richard
Re: Making a Backup to a CD-RW
If directory is too deep or file name to be extremely long there will be issue (I had with netscape cache file) tar them for peace of mind On Mon, Feb 19, 2001 at 11:39:26PM +0100, Raffaele Sandrini wrote: > Hi all > > I want to make backups to CD-RW. So i have to do it with the mkisofs prog to > create the image. > name is altered after? > I tried it but i never got the output i want. > I want to backup the /root, /home and the /etc directory into the /root /home > and /etc dirs on the CD. > I tried this command: > mkisofs -R -o /tmp/backup.iso /home=/home/ /root=/root/ /etc=/etc/ > > but i had errors about dubble files or it merged the files wrong > > Have somebody a clue > Or should i make a tar image first and then a iso image of it and burn this > to the CD? > > Check out the best Linux distribution at www.debian.org (www.linux.org) > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > -- + Osamu Aoki <[EMAIL PROTECTED]>, GnuPG-key: 1024D/D5DE453D + + Fingerprint: 814E BD64 3288 40E7 E88E 3D92 C3F8 EA94 D5DE 453D + + === http://www.aokiconsulting.com === Cupertino, CA USA === +