From ec437547a227a8dd457c8805918979bda280cbaa Mon Sep 17 00:00:00 2001 From: Florent Huck Date: Thu, 18 Dec 2025 12:33:29 +0100 Subject: [PATCH 1/2] Add a note about source integ. when restoring backups --- sites/upsun/src/environments/restore.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sites/upsun/src/environments/restore.md b/sites/upsun/src/environments/restore.md index 76473b69d8..983e35d047 100644 --- a/sites/upsun/src/environments/restore.md +++ b/sites/upsun/src/environments/restore.md @@ -116,3 +116,7 @@ You can restore backups to a different environment than they were created on usi ```bash {{% vendor/cli %}} backup:restore --target={{% variable "TARGET_ENVIRONMENT_NAME" %}} --branch-from={{% variable "PARENT_ENVIRONMENT_NAME" %}} {{% variable "BACKUP_ID" %}} ``` + +{{< note theme="info" title="Source integration issue" >}} +If you have enabled [Source Integration](/integrations/source.md) for your project and you restore a backup into an environment that does not correspond to any Git branch in your repository, Source Integration will automatically delete the environment immediately after it is created. We strongly recommend that you first create the environment by creating a corresponding Git branch in your repository before restoring a backup to this environment. +{{< /note >}} From 34ebd2c04dbc4e69e2a00bbe02c7035ec359b509 Mon Sep 17 00:00:00 2001 From: Florent Huck Date: Thu, 18 Dec 2025 12:35:27 +0100 Subject: [PATCH 2/2] adding same note on Fixed side --- sites/platform/src/environments/restore.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sites/platform/src/environments/restore.md b/sites/platform/src/environments/restore.md index 8b71a95b7b..c26bc0ef43 100644 --- a/sites/platform/src/environments/restore.md +++ b/sites/platform/src/environments/restore.md @@ -113,3 +113,7 @@ You can restore backups to a different environment than they were created on usi ```bash {{% vendor/cli %}} backup:restore --target={{% variable "TARGET_ENVIRONMENT_NAME" %}} --branch-from={{% variable "PARENT_ENVIRONMENT_NAME" %}} {{% variable "BACKUP_ID" %}} ``` + +{{< note theme="info" title="Source integration issue" >}} +If you have enabled [Source Integration](/integrations/source.md) for your project and you restore a backup into an environment that does not correspond to any Git branch in your repository, Source Integration will automatically delete the environment immediately after it is created. We strongly recommend that you first create the environment by creating a corresponding Git branch in your repository before restoring a backup to this environment. +{{< /note >}} \ No newline at end of file