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