PortValhalla/profiles/machines/manuel/DerGeret/Windows/Backup.ps1

11 lines
393 B
PowerShell

#!/bin/pwsh
$null = New-Module {
. "$PSScriptRoot/../../../../../scripts/Common/Scripts/Context.ps1";
. "$PSScriptRoot/../../../../../scripts/Windows/OS/Legacy.ps1";
Write-Host "Starting Backup of Windows";
$context = [Context]::new();
$context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name");
Backup-WindowsInstallation $context;
}