Skip to content

Commit

Permalink
Fixed 7-zip de-/compression logic bug introduced in the last release.
Browse files Browse the repository at this point in the history
  • Loading branch information
alekdavisintel committed Jun 25, 2020
1 parent 31f435a commit c1b5aad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions PlexBackup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -499,7 +499,7 @@ $ArchiverOptionsCompress =
# 7-zip command-line option for decompression.
$ArchiverOptionsExpand =
@(
"-aoa"
"aoa"
)

# DO NOT CHANGE THE FOLLOWING SETTINGS:
Expand Down Expand Up @@ -3604,7 +3604,8 @@ if ($Mode -eq "Restore") {
$Type `
$Retries `
$RetryWaitSec `
$ArchiverPath
$ArchiverPath `
$ArchiverOptionsExpand
}
# Back up Plex app data.
else {
Expand Down Expand Up @@ -3639,7 +3640,8 @@ else {
$RetryWaitSec `
$ArchiverPath `
$pmsVersion `
$pmsVersionPath
$pmsVersionPath `
$ArchiverOptionsCompress
}

# Log off all currently logged on users except the current user.
Expand Down
2 changes: 1 addition & 1 deletion PlexBackup.ps1.SAMPLE.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
},
"ArchiverOptionsExpand": {
"_meta": {
"default": ["-aoa"]
"default": ["aoa"]
},
"value": null
}
Expand Down

0 comments on commit c1b5aad

Please sign in to comment.