Add further log messages
This commit is contained in:
parent
c45a659aaa
commit
0ccc870584
3 changed files with 11 additions and 0 deletions
scripts/Windows/Scripts
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue