Print a warning concerning backup preservation
This commit is contained in:
parent
ce49475126
commit
9fad7ed0de
2 changed files with 2 additions and 2 deletions
|
@ -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?";
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue