From c1b5aada1ec5138530878b32bae73917799cb6a3 Mon Sep 17 00:00:00 2001 From: "Davis, Alek" Date: Wed, 24 Jun 2020 20:07:41 -0700 Subject: [PATCH] Fixed 7-zip de-/compression logic bug introduced in the last release. --- PlexBackup.ps1 | 12 +++++++----- PlexBackup.ps1.SAMPLE.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PlexBackup.ps1 b/PlexBackup.ps1 index 2a47654..ebc8964 100644 --- a/PlexBackup.ps1 +++ b/PlexBackup.ps1 @@ -196,9 +196,9 @@ Reboots the computer after a successful backup operation (ignored on restore). Forces an immediate restart of the computer after a successfull backup operation (the 'Reboot' switch is ignored). .NOTES -Version : 1.7.0 +Version : 1.7.1 Author : Alek Davis -Created on : 2020-06-08 +Created on : 2020-06-24 License : MIT License LicenseLink: https://github.com/alekdavis/PlexBackup/blob/master/LICENSE Copyright : (c) 2020 Alek Davis @@ -499,7 +499,7 @@ $ArchiverOptionsCompress = # 7-zip command-line option for decompression. $ArchiverOptionsExpand = @( - "-aoa" + "aoa" ) # DO NOT CHANGE THE FOLLOWING SETTINGS: @@ -3604,7 +3604,8 @@ if ($Mode -eq "Restore") { $Type ` $Retries ` $RetryWaitSec ` - $ArchiverPath + $ArchiverPath ` + $ArchiverOptionsExpand } # Back up Plex app data. else { @@ -3639,7 +3640,8 @@ else { $RetryWaitSec ` $ArchiverPath ` $pmsVersion ` - $pmsVersionPath + $pmsVersionPath ` + $ArchiverOptionsCompress } # Log off all currently logged on users except the current user. diff --git a/PlexBackup.ps1.SAMPLE.json b/PlexBackup.ps1.SAMPLE.json index 36e5851..f8e9b25 100644 --- a/PlexBackup.ps1.SAMPLE.json +++ b/PlexBackup.ps1.SAMPLE.json @@ -196,7 +196,7 @@ }, "ArchiverOptionsExpand": { "_meta": { - "default": ["-aoa"] + "default": ["aoa"] }, "value": null }