You are supposed to use this file to restore your backup through WHM. If you are on shared hosting then you can ask your provider to restore it for you. If you want to extract something manually then you can run the following command to extract files from the archive.
tar -zxvf file_name.tar.gz
In case you want to extract it to a specific directory use the following:
tar -C /home/backups/ -zxvf file_name.tar.gz
You can replace /home/backups/ with your desired path.
@Mujkanovic, these are flags in tar. You can type man tar in Linux shell to see the commands.
The -x flag for the tar command means extract
The -z command means to gzip. Normal .tar files you don't need this, but with .tar.gz you need to use gzip to unzip.
The -v command means to do it verbosely, so it shows you what is being unzipped.
The -f command means force, so do not ask you "Are you sure you want to do this?"
We will cover the compression and extraction method of popular archive formats, including .tar.gz, .tar, .zip, and .rar.
You can use the command below to compress several files into a .tar.gz archive:tar -czvf archive-name.tar.gz your-file.text your-file.php your-file.html
If you intend to compress an entire directory, use the following method.
Don’t forget to replace “archive-name” and “your-file” with your actual file names and directories. Also, you are not limited to file formats that are used in this example.
tar -czvf archive-name.tar.gz /Directory-Name
To extract a .tar.gz archive, enter:tar -zxvf archive-name.tar.gz
The syntax for creating .tar archives is as follows:tar -zcf archive-name.tar your-file.php your-file.php your-file.html
Enter the following line to move the whole directory to a .tar file:
tar -zcf archive-name.tar.gz /directory-name
You can extract the previous archive by typing this command:tar -xvf archive-name.tar
For .zip files, we’ll be using the zip command instead of tar. Here’s how you create an archive in this format:zip archive-name.zip your-file.php your-file.php your-file.php
In order to compress a directory, use this syntax:
zip -r archive-name.zip /directory-name
This command is used for .zip file decompression:unzip archive-name.zip
The command for RAR compression is rar, as shown below:rar a archive-name.rar your-file.txt your-file.php your-file.html
To put an entire folder into one .rar archive, you should use this syntax.
rar a archive-name.rar /directory-name
This is how you extract the .rar archive.unrar x archive-name.rar