From fdc92823c7cef7e769f17f2d1860825e4df4a8e4 Mon Sep 17 00:00:00 2001 From: crp3844 Date: Tue, 6 Sep 2022 14:03:26 -0400 Subject: [PATCH] Started python backup script --- bitwardenBackup.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 bitwardenBackup.py diff --git a/bitwardenBackup.py b/bitwardenBackup.py new file mode 100644 index 0000000..efff20f --- /dev/null +++ b/bitwardenBackup.py @@ -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)) \ No newline at end of file