dblayout enhancements for backup-feature; added preconfig and updates for 2.1.x

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-06-07 17:58:29 +02:00
parent 3445472049
commit 981d7f3d9a
7 changed files with 214 additions and 89 deletions

View File

@@ -48,14 +48,14 @@ class BackupCron extends FroxlorCron
]);
}
private static function handle($user, $data)
private static function handle(array $userdata)
{
echo "BackupCron: started - creating customer backup for user $user\n";
echo "BackupCron: started - creating customer backup for user " . $userdata['user'] . "\n";
echo $data . "\n";
echo $userdata['data'] . "\n";
sleep(rand(1, 3));
echo "BackupCron: finished - creating customer backup for user $user\n";
echo "BackupCron: finished - creating customer backup for user " . $userdata['user'] . "\n";
}
}