2.5.6. Creating, viewing and unpacking an archive

The console displays only the last 200 lines of output when performing operations.

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.
  1. Select the files and directories you want to archive, right-click on them and select "Create archive":
  2. Specify the name of the archive to be created and confirm the operation:

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:

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 or 7z... In such a situation, repack the archive on your PC in the format zip.
  • 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.
  1. Change to the directory with the archive you want to unpack.
  2. Select the archive, right-click on it and select "Extract archive":
  3. 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.
Content