PortValhalla/scripts/Windows/Software/reWASD/Manage.ps1

19 lines
606 B
PowerShell
Raw Normal View History

2023-07-12 20:37:31 +00:00
#!/bin/pwsh
2023-06-07 20:21:01 +00:00
. "$PSScriptRoot/../../Scripts/Context.ps1";
2023-06-08 00:28:33 +00:00
$null = New-Module {
$path = "$env:PUBLIC/Documents/reWASD";
$softwareName = "reWASD";
2023-06-30 10:19:54 +00:00
function Backup-reWASD([Context] $context) {
Write-Host "Backing up reWASD";
2023-06-08 00:28:33 +00:00
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-x@`"$PSScriptRoot/exclude.txt`""));
}
2023-07-02 14:05:04 +00:00
function Restore-reWASD([Context] $context) {
Write-Host "Restoring reWASD";
Read-Host "Please hit enter once you have installed reWASD";
$context.Restore($context.SoftwareArchive($softwareName), $path);
}
2023-06-07 20:21:01 +00:00
}