Results 1 to 2 of 2

Thread: Quick tar backup question

  1. #1

    Quick tar backup question

    If I want to restore a tar archive to its original location, don't I have to use the absolute pathname when creating the archive, such as:
    tar cvzf backup.tar.gz /home/john
    As apposed to:
    cd /home/john
    tar cvzf backup.tar.gz .
    The first would extract to its original location when I extract it while the second would extract to whichever directory the tarball is in - that correct? Thanks.

  2. #2

    Re:Quick tar backup question

    either will work, it just depends on what direct you are in when you de-archive it. e.g. it you were at / then you wold want to do a tar -cf file.tar /home/john, if it was created with absloute path names.

Similar Threads

  1. A Quick Question
    By MrsSim in forum Windows - General Topics
    Replies: 2
    Last Post: 01-02-2005, 12:38 PM
  2. Quick DHCP Question
    By mcdougrs in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 12-30-2003, 09:25 PM
  3. Quick Question(s)
    By stryder144 in forum General Chat
    Replies: 15
    Last Post: 11-11-2002, 11:14 PM
  4. quick cdparanoia question
    By in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 08-24-2002, 06:17 AM
  5. Quick mplayer question..
    By CP in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 07-27-2002, 01:18 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts