From 9fad7ed0debd07d7830e4a45b505c52174f4a860 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Sat, 23 Mar 2024 16:34:08 +0100
Subject: [PATCH] Print a warning concerning backup preservation

---
 profiles/DerGeret/Windows/Backup.ps1 | 2 --
 scripts/Windows/OS/Manage.ps1        | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/profiles/DerGeret/Windows/Backup.ps1 b/profiles/DerGeret/Windows/Backup.ps1
index f1c7600f..402ff066 100644
--- a/profiles/DerGeret/Windows/Backup.ps1
+++ b/profiles/DerGeret/Windows/Backup.ps1
@@ -7,6 +7,4 @@ $null = New-Module {
     $context = [Context]::new();
     $context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name");
     Backup-WindowsInstallation $context;
-    Write-Host "Never forget to store the backup somewhere safe!";
-    Write-Host "I mean... what kind of a dumbass would ever forget to do so, right?";
 }
diff --git a/scripts/Windows/OS/Manage.ps1 b/scripts/Windows/OS/Manage.ps1
index fec6ffa1..fa415323 100644
--- a/scripts/Windows/OS/Manage.ps1
+++ b/scripts/Windows/OS/Manage.ps1
@@ -13,6 +13,8 @@ function Backup-WindowsInstallation([Context] $context) {
     Backup-PersonalApps $context;
     $context.Backup($backupRoot, "$backupRoot.7z", @("-sdel"), $false);
     $context.Cleanup();
+    Write-Host "Never forget to store the backup somewhere safe!";
+    Write-Host "I mean... what kind of a dumbass would ever forget to do so, right?";
 }
 
 function Restore-WindowsInstallation([Context] $context) {