Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    65

    Default Shortcut for extracting homedir.tar subdirectories

    Hi everyone,

    Every other day I check the integrity of my account backups at random and uncompress the homedir and mysql directories on a local server at the office to rebuild the sites locally ("tar -xzvf username.tar.gz username/homedir/public_html username/mysql" use to give me the files I needed to do this).

    Starting with WHM 11.24, the homedir is now archived (homedir.tar) and nested in the main tarball. Can anyone suggest a neat command line to extract at once the mysql and public_html directories in this new setup (without the need to uncompress all the rest)?

    I thank you in advance for your suggestions.

    Sebby

    Running CentOS 5.2

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by sebby View Post
    Hi everyone,

    Every other day I check the integrity of my account backups at random and uncompress the homedir and mysql directories on a local server at the office to rebuild the sites locally ("tar -xzvf username.tar.gz username/homedir/public_html username/mysql" use to give me the files I needed to do this).

    Starting with WHM 11.24, the homedir is now archived (homedir.tar) and nested in the main tarball. Can anyone suggest a neat command line to extract at once the mysql and public_html directories in this new setup (without the need to uncompress all the rest)?

    I thank you in advance for your suggestions.

    Sebby

    Running CentOS 5.2
    You may try the following command to extract a specific file from your tar.gz file.

    tar -z --extract --file=yourbackup.tar.gz yourbackup/path/to/folder

    Assuming, you must know the hierarchy and paths of things in the backup before it was compressed.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    65

    Default

    Quote Originally Posted by JPC-Howard View Post
    You may try the following command to extract a specific file from your tar.gz file.

    tar -z --extract --file=yourbackup.tar.gz yourbackup/path/to/folder
    Thanks Howard but this is a no go as I want to extract in a single step the public_html directory included in the homedir.tar archive that is nested in the main tarball (username.tar.gz). I am looking for a way to pipe those 2 operations somehow...

    Cheers,

    Sebby

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    1

    Default

    I just find out that I have the same problem

    please if someone know the answer, let me know

    thanks

Similar Threads & Tags
Similar threads

  1. Trying to extract homedir.tar
    By fkatzenb in forum Data Protection
    Replies: 6
    Last Post: 07-14-2010, 07:57 AM
  2. ERROR: tar of homedir returned error 2
    By str0ke in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-19-2010, 10:54 AM
  3. Unpacking homedir.tar on desktop computer?
    By thernes in forum Data Protection
    Replies: 22
    Last Post: 02-05-2010, 12:38 PM
  4. Extracting ensim backup.tar.tgz
    By mitul in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-13-2006, 12:50 PM
  5. SP2 Backups tar.tar or tar.gz
    By JudgeJeffries in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-19-2004, 06:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube