PortValhalla/profiles/DerGeret/Windows/Backup.ps1

11 lines
381 B
PowerShell
Raw Normal View History

2023-07-12 20:37:31 +00:00
#!/bin/pwsh
2023-06-20 20:04:11 +00:00
$null = New-Module {
2024-08-07 19:05:32 +00:00
. "$PSScriptRoot/../../../scripts/Common/Scripts/Context.ps1";
2024-08-27 21:08:41 +00:00
. "$PSScriptRoot/../../../scripts/Windows/OS/Legacy.ps1";
2023-07-30 02:16:24 +00:00
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-20 20:04:11 +00:00
}