Move file lists to resource directory

This commit is contained in:
Manuel Thalmann 2024-03-23 17:18:38 +01:00
parent 11f5b1a4ae
commit 3f905b0753
5 changed files with 12 additions and 2 deletions

View file

@ -6,8 +6,18 @@ function Get-BackupCandidates() {
$candidates.AddRange(
[System.Tuple[string, string, string[]][]]@(
[System.Tuple]::Create("Home", "$HOME", @("-i@`"$PSScriptRoot/FileLists/Home.include.txt`"", "-x@`"$PSScriptRoot/FileLists/Home.exclude.txt`"")),
[System.Tuple]::Create("Public", "$env:PUBLIC", @("-i@`"$PSScriptRoot/FileLists/Public.include.txt`"", "-x@`"$PSScriptRoot/FileLists/Public.exclude.txt`""))));
[System.Tuple]::Create(
"Home",
"$HOME",
@(
"-i@`"$PSScriptRoot/../Resources/FileLists/Home.include.txt`"",
"-x@`"$PSScriptRoot/../Resources/FileLists/Home.exclude.txt`"")),
[System.Tuple]::Create(
"Public",
"$env:PUBLIC",
@(
"-i@`"$PSScriptRoot/../Resources/FileLists/Public.include.txt`"",
"-x@`"$PSScriptRoot/../Resources/FileLists/Public.exclude.txt`""))));
return $candidates;
}