
Originally Posted by
nileshparmar
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:
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