daily-backup: implement a dedicated imagepull before stopping containers which should reduce the downtime

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-07-25 09:53:16 +02:00
parent c0a3e206c9
commit b4e4e73616
4 changed files with 69 additions and 21 deletions

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
// Log whole log messages
ini_set('log_errors_max_len', '0');
use DI\Container;
require __DIR__ . '/../../vendor/autoload.php';
$container = \AIO\DependencyInjection::GetContainer();
/** @var \AIO\Controller\DockerController $dockerController */
$dockerController = $container->get(\AIO\Controller\DockerController::class);
// Pull all containers
$dockerController->PullAllContainerImages();