#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    5
    Rep Power
    0

    tar with file-list


    Hello,

    is there a possibility to use a file (for example: list.txt, which include directories and/or files) with tar ?

    example list.txt:
    /usr/local/httpd/htdocs
    /etc/named
    /var/log/messages
    /var/log/mail
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    cat list.txt|xargs tar cf archive.tar
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    170
    Rep Power
    13
    or
    tar cf archive.tar -I list.txt
    Candyman. CandyMan. Candy ... Oh, Hi !

IMN logo majestic logo threadwatch logo seochat tools logo