2023-06-20 20:04:11 +00:00
|
|
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
|
|
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
|
|
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";
|
|
|
|
|
|
|
|
$null = New-Module {
|
2023-06-22 17:02:02 +00:00
|
|
|
Write-Host "Starting Backup of Windows";
|
2023-06-20 20:04:11 +00:00
|
|
|
$context = [Context]::new();
|
|
|
|
$context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name");
|
2023-06-30 10:19:54 +00:00
|
|
|
Backup-WindowsInstallation $context;
|
2023-06-22 17:02:02 +00:00
|
|
|
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?";
|
2023-06-20 20:04:11 +00:00
|
|
|
}
|