The site occupies 16 GiB, but updates require more: how to calculate disk space reserves
Site size does not equal the space needed for updates. I show which volumes to measure separately, how to sum two thresholds, and when it is better not to start an update.

In this article
Смотрите не на размер сайта, а на два порога. Для обновления на месте минимальный рабочий запас можно считать так: F₁ = B + P + U + W + M. Если рядом нужно развернуть тестовую копию или сохранить рабочую область для отката, второй порог выше: F₂ = F₁ + R.
Здесь B — локальный след новой резервной копии, P — пакет обновления, U — временные и распакованные файлы, W — записи сайта за окно работ, M — выбранный операционный запас, R — место для одновременной тестовой копии. Это не формула «1С-Битрикс» и не универсальная норма для CMS. Это способ не забыть слагаемые и подставить измерения своей системы.
Почему размер сайта — не ответ
Допустим, файлы и база занимают 16 ГиБ, а на разделе свободно 20 ГиБ. Из этого нельзя заключить, что обновление поместится. Архив может быть меньше исходных данных из-за сжатия, но он появляется рядом с пакетом обновления, временными файлами и новыми данными, которые сайт продолжает записывать. Если одновременно разворачивается тестовая копия, часть данных приходится хранить ещё раз.
Обратная ошибка тоже встречается: взять размер файлов сайта, добавить к нему размер базы, а затем ещё раз добавить размер готового архива, хотя в принятой модели B уже обозначает весь локальный след новой копии. Сначала договоритесь, что измеряет каждое слагаемое, и не складывайте один и тот же объём дважды.
Производитель рекомендует перед обновлением убедиться в наличии резервной копии базы данных, ядра и служебной области. Причина практичная: обновление меняет файлы ядра и может менять структуру базы. Успешно открывшаяся главная страница после частичного обновления не заменяет целостную копию и проверку важных сценариев.
Какие величины измерить
- B — размер новой сопоставимой резервной копии, которая действительно займёт место на сервере. Берите размер завершённого архива, а не процент сжатия «обычно».
- P — размер загружаемого пакета обновления, если он хранится локально отдельно.
- U — максимальный локальный объём распаковки и временных файлов. Если продукт или провайдер не сообщает его, выясните на тестовом запуске или у поддержки; неизвестное значение нельзя тихо заменить нулём.
- W — рост данных за окно работ: загрузки пользователей, логи, кеши, новые заказы и изменения базы.
- M — запас на погрешность измерений и служебные операции. Его выбирают явно, а не выдают за коэффициент производителя.
- R — полный рабочий объём одновременной тестовой копии: файлы, база и её временная область. Добавляйте его только тогда, когда такая копия действительно создаётся.
В списке резервных копий «1С-Битрикс» показаны размер архива и его размещение. Для локального варианта файлы находятся в каталоге /bitrix/backup. Это удобнее предположения по размеру исходного сайта: архив уже учитывает выбранный состав и сжатие.
Облачное хранение не даёт права автоматически поставить B = 0. В документации о хранении копий отдельно отмечено, что при создании копии в облаке может дополнительно появиться локальная копия. Проверьте настройки удаления и фактическое размещение завершённого архива. Удалять старую копию до появления и проверки новой — плохой способ освободить место для проверки новой копии.
Считать нужно по каждому разделу
Свободное место важно на той файловой системе, где появятся конкретные данные. GNU df сообщает доступное место на файловой системе, содержащей указанный путь. Если сайт, каталог резервных копий и временная область находятся на разных разделах, одной общей суммы недостаточно: для каждого раздела составьте собственный набор слагаемых.
Вот тут интересно: большой свободный том не помогает, если временные файлы обновления создаются на почти заполненном системном разделе. И наоборот, локальный архив на отдельном хранилище не должен второй раз уменьшать запас раздела с файлами сайта. Карта путей важнее красивой общей цифры в панели.
Учебный расчёт
Предположим, файлы сайта и логический дамп базы вместе дают 16 ГиБ несжатых данных. Последний сопоставимый завершённый архив занимает B = 9 ГиБ. Остальные измеренные значения: пакет обновления P = 0,4 ГиБ, пик временной области U = 1,2 ГиБ, ожидаемые записи за окно работ W = 2 ГиБ и выбранный запас M = 3 ГиБ.
Для обновления на месте F₁ = 9 + 0,4 + 1,2 + 2 + 3 = 15,6 ГиБ. Если рядом нужно держать тестовую копию с рабочим объёмом R = 16 ГиБ, второй порог составит F₂ = 15,6 + 16 = 31,6 ГиБ.
При 20 ГиБ свободного места первая модель проходит, а вторая — нет. Это не означает, что конкретному сайту достаточно 15,6 ГиБ: все числа учебные. Полезен сам вывод — слово «свободно» ничего не решает, пока не выбраны сценарий и измеряемые слагаемые.
Когда обновление лучше не начинать
- Новая резервная копия ещё создаётся, завершилась с ошибкой или её размер и размещение неизвестны.
- Неясно, где продукт хранит пакет и временные файлы, а поддержки или тестовой среды для измерения нет.
- На одном из задействованных разделов свободное место ниже рассчитанного порога.
- После создания копии запас упал ниже F₁, хотя само обновление ещё не началось.
- План требует одновременной тестовой копии, но запас проходит проверку только по первому порогу.
- Для восстановления нет проверяемого доступа к архиву, паролю или инструкции ответственного администратора.
Критерий готовности звучит скучно, зато проверяемо: свежая копия завершена и доступна, каждый локальный путь привязан к своему разделу, значения B, P, U и W взяты из этой среды, выбранный операционный запас M объяснён, а свободное место после создания копии остаётся выше нужного порога. Если нужна одновременная тестовая копия, запас проходит и проверку по второму порогу с R.
Что делать с нехваткой места
Безопасный порядок — уменьшить сам сценарий, а не удалять защиту. Перенесите подтверждённую копию на разрешённое внешнее хранилище и проверьте, что локальный файл действительно удаляется по настройкам; освободите место от явно устаревших копий по политике хранения; перенесите тестовую копию на отдельный раздел; согласуйте окно с меньшим W. Любое удаление выполняют только после идентификации файлов и наличия проверенной актуальной копии.
Я бы начала с простого вопроса администратору или хостингу: «Покажите пять измеренных слагаемых для обновления на месте и отдельно объём тестовой копии». Ответ «места должно хватить» проверке не поддаётся. Сумма с путями и единицами — уже основание принять решение или перенести работы.
Do not look at site size alone; look at two thresholds. For an in-place update, the minimum working reserve can be calculated as: F₁ = B + P + U + W + M. If you need to deploy a test copy nearby or keep a working area for rollback, the second threshold is higher: F₂ = F₁ + R.
Here, B is the local footprint of the new backup, P is the update package, U is temporary and unpacked files, W is site records written during the maintenance window, M is the chosen operational buffer, and R is space for a simultaneous test copy. This is not a 1C-Bitrix formula nor a universal standard for CMS platforms. It is a method to ensure you do not forget the components and can substitute measurements from your own system.
Why site size is not the answer
Suppose files and the database occupy 16 GiB, and 20 GiB is free on the partition. You cannot conclude that the update will fit. The archive may be smaller than the original data due to compression, but it appears alongside the update package, temporary files, and new data the site continues to write. If a test copy is deployed simultaneously, part of the data must be stored again.
The reverse error also occurs: taking the site file size, adding the database size, and then adding the ready archive size again, even though in the accepted model B already denotes the entire local footprint of the new copy. First, agree on what each addend measures, and do not add the same volume twice.
The vendor recommends ensuring you have a backup of the database, core, and service area before updating. The reason is practical: an update changes core files and may alter the database structure. A successfully loaded homepage after a partial update does not replace a complete copy and verification of critical scenarios.
What quantities to measure
- B — the size of the new comparable backup that will actually take space on the server. Take the size of the completed archive, not a generic compression percentage.
- P — the size of the uploaded update package, if it is stored locally separately.
- U — the maximum local volume for unpacking and temporary files. If the product or provider does not report it, find out during a test run or with support; an unknown value must not be silently replaced with zero.
- W — data growth during the maintenance window: user uploads, logs, caches, new orders, and database changes.
- M — a buffer for measurement errors and administrative operations. It is chosen explicitly, not presented as a manufacturer coefficient.
- R — the full working volume of a simultaneous test copy: files, database, and its temporary area. Add it only when such a copy is actually created.
In the list of 1C-Bitrix backups, the archive size and its location are shown. For the local variant, files are in the /bitrix/backup directory. This is more reliable than estimating based on the original site size: the archive already accounts for the selected components and compression.
Cloud storage does not automatically set B = 0. The documentation on backup storage specifically notes that creating a cloud backup may also generate a local copy. Check the deletion settings and the actual location of the completed archive. Deleting an old copy before the new one appears and is verified is a poor way to free up space for verifying the new copy.
Calculate for each section separately
Free space matters on the specific file system where the data will reside. GNU df reports available space on the file system containing the specified path. If the site, backup directory, and temporary area are on different partitions, a single total is insufficient: calculate a separate sum for each partition.
Here is the interesting part: a large free volume does not help if update temporary files are created on a nearly full system partition. Conversely, a local archive on a separate storage should not reduce the partition's free space for site files a second time. The path map matters more than a pretty total figure in the dashboard.
Educational calculation
Assume that site files and a logical database dump together yield 16 GiB of uncompressed data. The last comparable completed archive occupies B = 9 GiB. Other measured values are: update package P = 0.4 GiB, temporary area peak U = 1.2 GiB, expected records for the work window W = 2 GiB, and selected buffer M = 3 GiB.
For an in-place update, F₁ = 9 + 0.4 + 1.2 + 2 + 3 = 15.6 GiB. If a test copy with a working volume of R = 16 GiB must be kept nearby, the second threshold becomes F₂ = 15.6 + 16 = 31.6 GiB.
With 20 GiB of free space, the first model passes, but the second does not. This does not mean that 15.6 GiB is sufficient for a specific site: all numbers are for educational purposes. The conclusion itself is useful—the word "free" decides nothing until a scenario and measurable components are selected.
When it is better not to start an update
- The new backup is still being created, has failed with an error, or its size and location are unknown.
- It is unclear where the product stores the package and temporary files, and there is no support or test environment available for measurement.
- Free space on one of the involved partitions is below the calculated threshold.
- After the backup was created, the reserve dropped below F₁, although the update itself has not yet started.
- The plan requires a simultaneous test backup, but the reserve passes the check only against the first threshold.
- There is no verifiable access to the archive, password, or instructions from the responsible administrator for recovery.
The readiness criterion sounds boring but is verifiable: a fresh backup is completed and available, each local path is bound to its partition, values B, P, U, and W are taken from this environment, the selected operational reserve M is explained, and free space after creating the backup remains above the required threshold. If a simultaneous test backup is needed, the reserve also passes the check against the second threshold with R.
What to do about the lack of space
The safe procedure is to reduce the scenario itself, not remove protection. Move a verified copy to an allowed external storage and verify that the local file is actually deleted according to settings; free up space from explicitly outdated copies per the retention policy; move the test copy to a separate partition; agree on a window with a smaller W. Perform any deletion only after identifying the files and having a verified current copy.
I would start with a simple question to the administrator or hosting provider: 'Show me the five measured components for an in-place update and separately the volume of the test copy.' A response like 'there should be enough space' cannot be verified. A sum with paths and units is already grounds to make a decision or move the work.





Discussion 0
Share your experience and ask questions. Comments without links appear after editorial review.
No comments yet. Start the discussion.