Allow specifying a custom backup root
This commit is contained in:
parent
ac288a913d
commit
f4198ff39d
1 changed files with 9 additions and 1 deletions
|
@ -1,7 +1,15 @@
|
||||||
class Context {
|
class Context {
|
||||||
|
[string]$RootDir;
|
||||||
[string]$BackupName;
|
[string]$BackupName;
|
||||||
[string] BackupRoot() {
|
[string] BackupRoot() {
|
||||||
return Join-Path $PSScriptRoot ".." ".." ".." "backup" $this.BackupName;
|
if (-not $this.RootDir)
|
||||||
|
{
|
||||||
|
return Join-Path $PSScriptRoot ".." ".." ".." "backup" $this.BackupName;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $this.RootDir;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[string] ArchivePath($name) {
|
[string] ArchivePath($name) {
|
||||||
|
|
Loading…
Reference in a new issue