Code: Alles auswählen
result = subprocess.run(['restic',
                 '-r',
                 backup_data[row].repository,
                 'backup',
                 backup_data[row].source],
                 input=backup_data[row].password,
                 check=False,
                 capture_output=True,
                 text=True)
                  
result.check_returncode()
Code: Alles auswählen
args = ['restic',
           'r',
           backup_data[row].repository,
           'backup',
           backup_data[row].source]
result = subprocess.run(args,
                 input=backup_data[row].password,
                 check=False,
                 capture_output=True,
                 text=True)
result.check_returncode()
Für die Formatierung muss ich mich entschuldigen, in meinem VSCodium sieht es einwandfrei aus

