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:
    Code:
    tar cvzf backup.tar.gz /home/john
    As apposed to:
    Code:
    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

    hello,
    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. iptables & samba -- quick question
    By mcohn in forum Security
    Replies: 2
    Last Post: 10-07-2005, 06:41 AM
  2. How to Use Windows Backup to Backup Your Data
    By The Donald in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 09:37 PM
  3. Quick DHCP Question
    By mcdougrs in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 12-30-2003, 08:25 PM
  4. Quick mplayer question..
    By CP in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 07-27-2002, 01:18 AM
  5. Quick dialout question
    By in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-07-2002, 01:39 PM

Bookmarks

Posting Permissions

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