Moved external apps to lib folder and updated path variable
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user