2.5.6. Creating, viewing and unpacking an archive
The console displays only the last 200 lines of output when performing operations.
Archive creation
Important points:
- The hosting account must have enough free disk space to place the archive file. It is recommended to have free space that is approximately equal to or greater than the amount of archived data. If there is not enough space, the archive will not be created.
- Archives are created in the format
zip
. - To get an archive with the contents root directory site or subdomain it is more convenient to use a backup: create backup and download the resulting archive on your PC. This method does not require free space on your hosting account.
- VPS and Dedicated To perform an operation, the corresponding utility must be installed on the server.
Viewing archive contents
To view the contents of the archive, go to the directory with the archive and double—click on it — a window will open in which you can see which files and directories the archive contains:
Unpacking the archive
Notes:
- The utility is used to unpack unar.
- Supported archive formats:
zip
,7z
,rar
,tar
,gz
,bz2
,tar.gz
,tgz
,tar.bz2
,tbz2
other. A complete list can be found at official website utilities in section "Supported archive formats".
Important points:
- The hosting account must have enough free disk space (volume and inodes) for placing the contents of the archive.
- The integrity of the archive must not be compromised. The damaged archive may not be unpacked.
- Due to differences in the versions of the used archiver / unpacker, archives in the format
rar
or7z
... In such a situation, repack the archive on your PC in the formatzip
. - When unpacking the files from the archive, they replace the existing files with the same names, the rest of the files are not affected.
- The file manager does not unpack the so—called rsrc files — macOS system files. When unpacking, such files are skipped and lines like this will appear in the window with the unpacking process
file(size, rsrc)... Failed! (Opening file failed)
. The rest of the files will be unpacked normally. - The rights to unpacked files and directories remain the same as they were in the archive.
- VPS and Dedicated To perform an operation, the corresponding utility must be installed on the server.
- Change to the directory with the archive you want to unpack.
- Specify the path to the directory where you want to unpack the archive, or clear the field for unpacking into the current directory, confirm the operation:
Examples of paths:
- Empty path — unpacking into the current directory.
archive
— unpacking into a subdirectory of the current directory./
- unpacking to the root of the hosting account, regardless of the current location./example.com/www
— unpacking to the site directory regardless of the current location.