[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Only extract subdir of tar
From: |
Jan-Benedict Glaw |
Subject: |
Only extract subdir of tar |
Date: |
Fri, 7 Sep 2001 18:03:31 +0200 |
User-agent: |
Mutt/1.2.5i |
Hi!
The info page of tar directs me to this email address to post
suggestions for tar. Here is one.
Think of this (basically):
- I've got some really large (and busy) partition
mounted on /home/data
- I take a snapshot of this (via LVM) and mount it to
/home/snapshot
- I accidentally do a
tar cf /dev/st0 /home/snapshot
Now, some time later, one subdirectory of /home/data, is trashed
and I want to recover it. My problem: the tape archive contains
everything with a trailing "home/snapshot/". I really would like
to see a switch like "only extract subdirectory X/Y/Z/ and strip
the path component X/Y/Z/ off." This would allow me to directly
restore the lost directory (and not having the need to move it
after restoration to a temporary place).
MfG, JBG
--
Jan-Benedict Glaw . address@hidden . +49-172-7608481
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Only extract subdir of tar,
Jan-Benedict Glaw <=