| Server IP : 188.114.96.3 / Your IP : 216.73.216.143 Web Server : Apache System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64 User : ( 3194769) PHP Version : 8.5.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /polana/cron/ |
Upload File : |
<?php
declare(strict_types=1);
if (PHP_SAPI !== 'cli') {http_response_code(403);exit('CLI only');}
require_once dirname(__DIR__).'/includes/polana_backup_v1811.php';
date_default_timezone_set('Europe/Warsaw');
$mode=$argv[1]??'auto';
if (!in_array($mode,['auto','full'],true)) {fwrite(STDERR,"Użycie: php polana-backup-v1811.php [auto|full]\n");exit(2);}
try {
foreach(p1811_tick($mode==='full') as $item) echo $item."\n";
echo "OK\n";
} catch (Throwable $e) {
error_log('[POLANA V18.11 BACKUP] '.$e->getMessage());
fwrite(STDERR,"BŁĄD: backup niekompletny; sprawdź panel V18.11 i historię.\n");
exit(1);
}