Add further log messages

This commit is contained in:
Manuel Thalmann 2023-06-22 19:02:02 +02:00
parent c45a659aaa
commit 0ccc870584
3 changed files with 11 additions and 0 deletions
scripts/Windows/Scripts

View file

@ -12,12 +12,16 @@ function Get-BackupCandidates() {
}
function Invoke-FileBackup([Context] $context) {
Write-Host "Backing up Personal Files";
foreach ($candidate in Get-BackupCandidates) {
$context.Backup($candidate[1], $context.FileArchivePath($candidate[0]), $candidate[2]);
}
}
function Invoke-FileRestore([Context] $context) {
Write-Host "Restoring Personal Files";
foreach ($candidate in Get-BackupCandidates) {
$archivePath = $context.FileArchivePath($candidate[0]);