Re: tar to different folder

From: Andreas Schulze (b79xan_at_gmx.de)
Date: 06/30/04


Date: Wed, 30 Jun 2004 10:07:27 +0200


"mr kay" <mrkhairy@yahoo.com> schrieb im Newsbeitrag
news:61039684.0406292128.7865c05b@posting.google.com...
> Hi,
>
> does anyone know how to extract (tar) files to different folder? I
> would like to extract /home/user/note.txt to /tmp directory.
>
> Thanks

Hi,

Use pax to extract tar archive to different directory/folder without
playing around with mount command.
# pax -rpe -f /dev/rmt0 -s:^/home/user/:/tmp/:g

HTH,
Andreas



Relevant Pages

  • bsdtar cant handle files >8GB
    ... While taking a look at bin/9123 I found that although pax seems to have gained the ability to extract files over 8GB, bsdtar doesn't seem to be able to any more. ... I created a 12GB file and tarred it up using "tar cvf tmpfile.tar tmpfile". ... tar: Unrecognized archive format: Inappropriate file type or format ...
    (freebsd-current)
  • WinHKI 1.6x Archive Extraction Directory traversal
    ... WinHKI Archiver administrator ask me for penetration ... WinHKI Archiver: ... extract 14 formats (hki, rar, ace, zip, gzip, tar, ...
    (Bugtraq)
  • RE: Archive extraction issues
    ... What I want to do is extract backup tar file, ... extract the incremental.tar file (which contains other tar archives) ...
    (RedHat)
  • SUMMARY: Resuming tar restore
    ... the option suggested on the tar man page to ... extract archives based no regular expressions is a no-brainer. ... it should work nicely with disk archives. ... command and the restore was interrupted. ...
    (SunManagers)
  • bsdtar is fragile with LANG=ja_JP.eucJP
    ... $ make extract ... tar: Pathname in pax header can't be converted to current locale.: Inappropriate file type or format ...
    (freebsd-current)