Print a warning concerning backup preservation

This commit is contained in:
Manuel Thalmann 2024-03-23 16:34:08 +01:00
parent ce49475126
commit 9fad7ed0de
2 changed files with 2 additions and 2 deletions

View file

@ -7,6 +7,4 @@ $null = New-Module {
$context = [Context]::new(); $context = [Context]::new();
$context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name"); $context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name");
Backup-WindowsInstallation $context; 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?";
} }

View file

@ -13,6 +13,8 @@ function Backup-WindowsInstallation([Context] $context) {
Backup-PersonalApps $context; Backup-PersonalApps $context;
$context.Backup($backupRoot, "$backupRoot.7z", @("-sdel"), $false); $context.Backup($backupRoot, "$backupRoot.7z", @("-sdel"), $false);
$context.Cleanup(); $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) { function Restore-WindowsInstallation([Context] $context) {