home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9869 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.3 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  2. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Swap files versus swap partitions
  5. Message-ID: <1992Sep4.192800.27877@klaava.Helsinki.FI>
  6. Date: 4 Sep 92 19:28:00 GMT
  7. References: <1992Sep3.130335.18409@klaava.Helsinki.FI> <1992Sep4.014701.7151@afterlife.ncsc.mil>
  8. Organization: University of Helsinki
  9. Lines: 23
  10.  
  11. jepstei@afterlife.ncsc.mil (John Epstein) writes:
  12. >I use GNU tar to backup Linux to MS-DOS partition to backup with QIC-40 tape.
  13. >I haven't got +exclude swapfile to work.
  14.  
  15. Simplified (but not tested) from my modified level-0 backup script (the
  16. original came with GNU tar 1.10 sources):
  17.  
  18.     echo swapfile | tar /bin/tar -c -f /dev/fd0 +exclude-from - -C / 
  19.  
  20. It seems that tar strips the leading / from the filename, and only after
  21. this compares it with the name of the file to be excluded.
  22.  
  23. You have to have GNU tar, of course, I don't think the pax thingy
  24. supports +exclude.
  25.  
  26. I can mail or post my backup scripts if there is interest.  I did some
  27. ugly things to them, since I'm lacking things like mail (but "cat
  28. >>/usr/spool/mail/root" works well :).  They seem to work somewhat well,
  29. and it's them that I use, but I'm not going to recommend them to
  30. anybody.
  31.  
  32. --
  33. Lars.Wirzenius@helsinki.fi
  34.