mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
22 lines
492 B
PHP
22 lines
492 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Backups;
|
|
|
|
use Pterodactyl\Models\Backup;
|
|
use Pterodactyl\Models\Server;
|
|
use Pterodactyl\Models\User;
|
|
use Throwable;
|
|
|
|
interface RestoresBackups
|
|
{
|
|
/**
|
|
* Mark the server as restoring and ask Wings to unpack the backup over its files, deleting
|
|
* them first when $truncate is set.
|
|
*
|
|
* @throws Throwable
|
|
*/
|
|
public function restore(Server $server, Backup $backup, User $user, bool $truncate): void;
|
|
}
|