{{ data_get_str($server, 'name')->limit(10) }} > Transfer | Coolify
@if ($this->isLocalhost) The Coolify host (localhost) cannot be transferred between instances. @else @php $exportTooltip = $exportId ? "Export ID: {$exportId}" : null; @endphp @if (data_get($this->migration, 'status') === 'running') @elseif ($server->isTransferredAway()) @else @endif
@if ($server->isTransferredAway())

Transfer back

Undo the transfer. The instance that manages the server now transfers it back here, with all changes made there. This archive is replaced only when the import here succeeds. If the other instance is lost, use Enable management on the server page.

Transfer back Running checks…
@if ($transferBackAt = data_get($server->server_metadata, 'transfer.transfer_back.requested_at')) {{ data_get($server->server_metadata, 'transfer.transfer_back.from') }} started the transfer back at {{ \Illuminate\Support\Carbon::parse($transferBackAt)->format('H:i') }}. Reload this page in a minute. When the transfer finishes, this instance manages the server again. If it does not, read the transfer log of the server on the other instance. @endif @else

Transfer to another instance

Enter the target Coolify URL and an API token from that instance (root recommended). This exports the server and imports it on the target, which then manages it. Management is then disabled here.

Transfer server Running checks…
@endif @php $migration = $this->migration; @endphp @if (data_get($migration, 'status') === 'running')
The server is being transferred to {{ data_get($migration, 'target_url') }}. You can leave this page; the transfer continues in the background.
@elseif (data_get($migration, 'status') === 'failed') @if (count((array) data_get($migration, 'log', [])) > 0) See the transfer log below for details. @else {{ data_get($migration, 'error') }} @endif @elseif (data_get($migration, 'status') === 'unknown') The transfer stopped before this instance could confirm the result. Check whether {{ data_get($migration, 'target_url') }} manages this server. If it does, call POST /api/v1/servers/{{ $server->uuid }}/transfer/complete on this instance. If it does not, transfer again. @elseif (data_get($migration, 'status') === 'succeeded') {{ data_get($migration, 'target_url') }} now manages this server. Automations are disabled on this instance. @php $checklist = $this->postTransferChecklist; @endphp @if (count($checklist) > 0 || data_get($migration, 'target_server_url'))

Finish the transfer on the target

The target shows these steps on the server page, checks them where it can, and keeps their state. @if ($targetServerUrl = data_get($migration, 'target_server_url')) Open the server on the target. @endif

@if (count($checklist) > 0)
    @foreach ($checklist as $step)
  • {{ $step }}
  • @endforeach
@endif
@endif @endif @if (count((array) data_get($migration, 'log', [])) > 0)

Transfer log

    @foreach ((array) data_get($migration, 'log', []) as $entry)
  1. data_get($entry, 'level') === 'success', 'text-error' => data_get($entry, 'level') === 'error', 'text-warning' => data_get($entry, 'level') === 'warning', 'text-neutral-600 dark:text-fg-dim' => data_get($entry, 'level') === 'info', ])> {{ \Illuminate\Support\Carbon::parse(data_get($entry, 'at'))->format('H:i:s') }} {{ data_get($entry, 'message') }}
  2. @endforeach
@endif @if (count($lastWarnings) > 0)
    @foreach ($lastWarnings as $warning)
  • {{ $warning }}
  • @endforeach
@endif
@endif