diff --git a/portwarden_commands.ps1 b/portwarden_commands.ps1 index 5fa6e5a..5482b9a 100644 --- a/portwarden_commands.ps1 +++ b/portwarden_commands.ps1 @@ -3,7 +3,7 @@ $dateTime = get-date -format ("yyyyMMdd-HHmmss") $directory = "$env:Temp\Bitwarden" $filename = "Bitwarden Backup $dateTime" -$env:Path += ";$PSScriptRoot;PSScriptRoot\gpg\bin" +$env:Path += ";$PSScriptRoot;$PSScriptRoot\gpg\bin" # update server for BW CLI bw.exe config server https://bitwarden.johnhgaunt.com @@ -12,10 +12,10 @@ bw.exe config server https://bitwarden.johnhgaunt.com New-Item -ItemType directory -Force -Path "$directory" | out-null # backup bitwarden -portwarden_windows_amd64.exe --passphrase "34865y34iugb2ut4n^UHG%TBR" --filename "$directory\$filename.portwarden" encrypt -portwarden_windows_amd64.exe --passphrase "34865y34iugb2ut4n^UHG%TBR" --filename "$directory\$filename.portwarden" decrypt +portwarden_windows_amd64.exe --passphrase "thisISaVerySecURepassWorD!" --filename "$directory\$filename.portwarden" encrypt +portwarden_windows_amd64.exe --passphrase "thisISaVerySecURepassWorD!" --filename "$directory\$filename.portwarden" decrypt -# +# rename the zip file from .portwarden.decrypted.zip to just .zip rename-item "$directory\$filename.portwarden.decrypted.zip" "$directory\$filename.zip" # gpg encrypt while asking for the password