mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
bitwarden
This commit is contained in:
@@ -34,7 +34,7 @@ port = 1883
|
||||
topic_sum = "sectorq/omv/backups"
|
||||
mqtt_username = 'jaydee'
|
||||
mqtt_password = 'jaydee1'
|
||||
|
||||
print("1")
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "amftdr:", ["command=", "help", "output="])
|
||||
except getopt.GetoptError as err:
|
||||
@@ -69,7 +69,7 @@ STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
|
||||
msg = {"mode":_MODE, "status":"started","bak_name":"complete","start_time":STARTTIME,"end_time":"in progress","progress":0}
|
||||
client.publish(topic_sum, json.dumps(msg));
|
||||
client.disconnect()
|
||||
|
||||
print("2")
|
||||
backups = {
|
||||
"nas": {
|
||||
"github":
|
||||
@@ -115,7 +115,7 @@ if not host in backups and _BACKUP:
|
||||
print(f"No backup jobs for {host}")
|
||||
sys.exit()
|
||||
print("Test connection")
|
||||
|
||||
print("3")
|
||||
hm = socket.gethostbyaddr(BACKUP_HOST)
|
||||
|
||||
hostdown = True
|
||||
|
||||
Reference in New Issue
Block a user