home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 15922 < prev    next >
Encoding:
Text File  |  1992-11-08  |  4.3 KB  |  111 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!utcsri!torn!nott!dgbt!sirius!gilles
  3. From: gilles@dgbt.doc.ca (Gilles Gagnon)
  4. Subject: Re: Q: Poor person's backup
  5. Message-ID: <1992Nov6.204658.5044@dgbt.doc.ca>
  6. Keywords: backup
  7. Sender: news@dgbt.doc.ca (News user)
  8. Reply-To: gilles@dgbt.doc.ca
  9. Organization: The Communications Research Centre
  10. Date: Fri, 6 Nov 92 20:46:58 GMT
  11. Lines: 98
  12.  
  13.  
  14. Thanks to all those who sent me information on how to perform a backup
  15. of a linux system. Following are the details I got regarding the possible
  16. procedures one can use to backup his/her system when no tape drive is
  17. available.
  18.  
  19. --------
  20. --------
  21.  
  22. From: Philip Perucci <dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil>
  23.  
  24.   To backup, get cpio.  Works GREAT.  I like the one DIRECTLY from the
  25.   nice people at GNU, prep.ai.mit.edu (/pub/gnu).  The file is "cpio*"
  26.   - just go to dir and do "dir cpio*" to get filename.  Down-load it,
  27.   make it (yes...its clean!) and run it.
  28.  
  29.   To backup:  find X -print -depth | cpio -o -O /dev/fd0
  30.               (where X = root directory of tree to backup)
  31.   To restore: cpio -i -I /dev/fd0
  32.   To examine
  33.    contents
  34.    of backup: cpio -it -I /dev/fd0
  35.               (no files restored, just a list to CRT)
  36.  
  37.   Its beautiful:  You are prompted for floppies as required.  You can
  38.                   get GNU cpio from a number of sites, I happen to 
  39.                   favor the source.
  40.  
  41. --------
  42.  
  43. From gulasch!elmar@mcshh.Hanse.DE Wed Nov  4 18:31:00 1992
  44.  
  45. that's easy enough if you don't mind diskjockeying so many floppies.
  46. I recommend using tar in conjunction with compress and, since this combination
  47. can't write a multiple floppies archive, use one of the numereous disk-split
  48. programs for that. The entire command would look like
  49.  
  50.     tar -c -v -z -f - | compress -c | diskbackup
  51.  
  52. where 'diskbackup' can be found on nic.funet.fi and, I think, tsx-11.mit.edu.
  53. A few possible refinements:
  54. - leave out directories you don't really want to save. For once, tar acts
  55.   strange when processing /dev; other candidates might be /tmp and /usr/tmp
  56. - when done, create an (empty) file to remeber the backup date
  57. - invent sort of an 'incremental' backup where you only save files newer than
  58.   that last backup (use find -newer)
  59.  
  60. --------
  61.  
  62. From dpg@cs.nott.ac.uk (Dave `geek' Gymer)
  63.  
  64. Well, various solutions have been proposed by lots of people using
  65. various combinations of things like tar and cpio, and special programs
  66. to split large files into floppy-sized pieces, but I've been using my
  67. own port of the afio archiver (an extended cpio) for some time now.
  68. afio provides multivolume archive support, and the ability to compress
  69. individual files as they go into the archive (and, obviously,
  70. uncompress them as they come out); this gives it a major advantage
  71. over tar, since it can cope with corruption of individual files within
  72. a large archive.  It's a sort of poor-man's version of ARJ for UNIX.
  73.  
  74. I've fixed quite a few bugs in the version of afio I'm using (I first
  75. started using it about two years ago when I was using MiNT on and
  76. Atari ST); one or two problems remain, but on the whole it is very
  77. usable.
  78.  
  79. If anyone's interested, I'll be happy to send them the source.
  80.  
  81. --------
  82. --------
  83.  
  84. Yesterday I ftp'd, make'd and tried 'cpio' on my system. It worked fine
  85. backing up a small subset of my system using the instructions given by
  86. Philip Perucci. There was one little problem when I wanted to perform the
  87. restore. The command 'find X -print -depth' lists the files within a
  88. directory before listing the directory itself; this is the order in which
  89. the files get backed up. This results, at restore, in cpio trying to
  90. restore files in a directory which is not yet created. The directory
  91. gets created after cpio tries to restore files. I could make it work
  92. fine by removing the '-depth' option of find when performing a backup.
  93.  
  94. Now I will have to go buy a few boxes of floppies to perform a full backup
  95. of my system. Lots of fun ahead :) .
  96.  
  97. BTW Maybe this information could be put in the next release of the FAQ to
  98.     the benefit of people like me who want to perform backups but can only
  99.     rely on floppies as their backup media.
  100.  
  101. PS. I now know that the diskbackup is mentionned in the FAQ ( I forgot to look
  102.     first ). I think it would be good to mention the other options as well.
  103.  
  104. Thanks again everyone.
  105.  
  106. ---
  107. Gilles Gagnon     gilles@dgbt.doc.ca      | The Communications Research Centre
  108.                       | 3701 Carling Avenue, Ottawa CANADA
  109.  
  110.  
  111.