Started python backup script

This commit is contained in:
crp3844
2022-09-06 14:03:26 -04:00
parent a113fc49f5
commit fdc92823c7

19
bitwardenBackup.py Normal file
View File

@@ -0,0 +1,19 @@
# library needed
import sys
import os
import subprocess
import platform
import json
OS_DETECTED = platform.system()
SCRIPT_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
if OS_DETECTED == 'Windows2':
BITWARDEN_CLI_EXECUTABLE = "bw.exe"
elif OS_DETECTED == 'Linux2':
BITWARDEN_CLI_EXECUTABLE = "bw.exe"
else:
print("Your OS is not supported. Only Windows and Linux are currently supported.\nDetected OS: {0}".format(OS_DETECTED))
sys.exit(1)
print("Detected OS: {0}".format(SCRIPT_DIRECTORY))