From b0a66bc34ccbce12ead1b187694920f0e2b87ce9 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Wed, 24 Nov 2021 12:57:46 -0500 Subject: [PATCH] added no compression algo for gpg since its already zipped --- backupBitwarden.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backupBitwarden.ps1 b/backupBitwarden.ps1 index 5bfaeb0..8d6bb06 100644 --- a/backupBitwarden.ps1 +++ b/backupBitwarden.ps1 @@ -81,7 +81,7 @@ if ($zip -or $encrypt) { sdelete64.exe -s -p 5 $PSScriptRoot\*.csv $PSScriptRoot\*.json $PSScriptRoot\attachments if ($encrypt) { Write-Host "Encrypting the backup zip with your bitwarden password..." - gpg.exe --batch --passphrase "$password" --symmetric --cipher-algo AES256 --digest-algo SHA512 --output "$PSScriptRoot\$zipFilename.gpg" "$PSScriptRoot\$zipFilename" + gpg.exe --batch --passphrase "$password" --symmetric --cipher-algo AES256 --digest-algo SHA512 --compression-algo Uncompressed --output "$PSScriptRoot\$zipFilename.gpg" "$PSScriptRoot\$zipFilename" Write-Host "Securely deleting the zip file..." sdelete64.exe -p 5 "$PSScriptRoot\$zipFilename" }