Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default Trying to extract homedir.tar

    I am trying to find some files that were deleted on one of the accounts from a few weeks ago. I took the backup, acctname.tar.gz, and extracted it. I went to extract the homedir.tar and it won't let me!

    Code:
    root@server [/backup/w02/acctname]# tar xvzf homedir.tar
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by fkatzenb View Post
    I am trying to find some files that were deleted on one of the accounts from a few weeks ago. I took the backup, acctname.tar.gz, and extracted it. I went to extract the homedir.tar and it won't let me!

    Code:
    root@server [/backup/w02/acctname]# tar xvzf homedir.tar
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors
    For non-gzip-compressed tar archives please try the following example command (that notably omits the "-z" switch used for gzip-compression):
    Code:
    # tar -xvf homedir.tar
    For additional reference I recommend reviewing the manual "man" documentation using the following command:
    Code:
    # man tar

  3. #3
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default

    Wow... don't I feel like an idiot. Thanks!

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow

    Yes it's working

  5. #5
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow

    I have extracted using the command
    # tar -xvf homedir.tar

    but the directory homedir is not created


    root@server[/backup/cpbackup/monthly/nilesh/]# cd homedir
    -bash: cd: homedir: No such file or directory

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

    Default

    Quote Originally Posted by nileshparmar View Post
    I have extracted using the command
    # tar -xvf homedir.tar

    but the directory homedir is not created


    root@server[/backup/cpbackup/monthly/nilesh/]# cd homedir
    -bash: cd: homedir: No such file or directory
    It should have been created. Did you end up with the original homedir.tar file or is it lost as well.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by nileshparmar View Post
    I have extracted using the command
    # tar -xvf homedir.tar

    but the directory homedir is not created

    root@server[/backup/cpbackup/monthly/nilesh/]# cd homedir
    -bash: cd: homedir: No such file or directory
    The command used may have extracted the contents into the same directory from where the command was executed, for example, the directory name matching the cPanel account username.

    What does a directory listing show within the same path?
    Code:
    # ls -ahl /backup/cpbackup/monthly/nilesh
    If the directory "homedir" does not exist, try the following to ensure it is created before proceeding:
    Code:
    # mkdir -pv homedir
    To verify the directory "homedir" exists, use stat:
    Code:
    # stat homedir
    Once you've verified homedir exists, you may then extract the archive contents into the specified directory, as seen below:
    Code:
    # tar -xvf homedir.tar -C homedir
    If there's still difficulty, try using one of the following to just list the contents (without extracting); this should help identify or confirm what is stored and at what directory paths within the archive:
    Code:
    # tar -tvf homedir.tar

Similar Threads & Tags
Similar threads

  1. [Case 45599] Can't Extract .tar file in cPanel File Manager
    By voezie in forum New User Questions
    Replies: 4
    Last Post: 07-22-2011, 09:10 AM
  2. ERROR: tar of homedir returned error 2
    By str0ke in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-19-2010, 09:54 AM
  3. Unpacking homedir.tar on desktop computer?
    By thernes in forum Data Protection
    Replies: 22
    Last Post: 02-05-2010, 11:38 AM
  4. Can no longer extract tar.gz
    By FnF in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-18-2009, 02:43 PM
  5. Shortcut for extracting homedir.tar subdirectories
    By sebby in forum Data Protection
    Replies: 3
    Last Post: 02-12-2009, 08:01 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube