Moved external apps to lib folder and updated path variable

This commit is contained in:
Gaunt
2019-02-09 21:45:55 -05:00
parent b816abac74
commit 14079fb5c9
88 changed files with 2 additions and 5 deletions

View File

@@ -1,12 +1,9 @@
# get the date/time for the back filename
$dateTime = get-date -format ("yyyyMMdd-HHmmss")
# set working directory
$directory = "$PSScriptRoot\Bitwarden Backup Working Directory"
# set filename
$filename = "Bitwarden Backup $dateTime"
# add script directory to path
$env:Path += ";$PSScriptRoot;$PSScriptRoot\gpg\bin"
$env:Path += ";$PSScriptRoot\lib;$PSScriptRoot\lib\gpg\bin"
# update server for BW CLI
bw.exe config server https://bitwarden.johnhgaunt.com
@@ -14,7 +11,7 @@ bw.exe config server https://bitwarden.johnhgaunt.com
# create the backup directory
New-Item -ItemType directory -Force -Path "$directory" | out-null
# backup bitwarden and then decrypt the backup to get the zip file
# backup bitwarden
portwarden_windows_amd64.exe --passphrase "thisISaVerySecURepassWorD!" --filename "$directory\$filename.portwarden" encrypt
portwarden_windows_amd64.exe --passphrase "thisISaVerySecURepassWorD!" --filename "$directory\$filename.portwarden" decrypt

Binary file not shown.

View File