diff --git a/backupBitwarden.ps1 b/backupBitwarden.ps1 index f60e4be..e7dfe6e 100644 --- a/backupBitwarden.ps1 +++ b/backupBitwarden.ps1 @@ -85,12 +85,12 @@ if ($zip -or $encrypt) { Write-Host "Zipping the backup together..." Compress-Archive -Path $PSScriptRoot\*.csv, $PSScriptRoot\*.json, $PSScriptRoot\attachments -DestinationPath "$PSScriptRoot\$zipFilename" Write-Host "Securely deleting the exports and attachments..." - sdelete64.exe -s -p 5 $PSScriptRoot\*.csv $PSScriptRoot\*.json $PSScriptRoot\attachments + sdelete64.exe -s -p 25 $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 --compression-algo Uncompressed --output "$PSScriptRoot\$zipFilename.gpg" "$PSScriptRoot\$zipFilename" Write-Host "Securely deleting the zip file..." - sdelete64.exe -p 5 "$PSScriptRoot\$zipFilename" + sdelete64.exe -p 25 "$PSScriptRoot\$zipFilename" } }