Hi!
I tried to swtich from blocksync-script to your module, but i'm unable to start the modified example:
import blocksync
source_file = blocksync.File(
"/dev/vgmain1/bsyncsourcetest",
remote=True,
hostname="ip.jbplan.de",
username="root",
password="example_password",
compress=True,
port=2201,
key_filename="/root/.ssh/id_ecdsa",
cipher="aes128-ctr",
)
destination_file = blocksync.File("/dev/vg2/pb_bsyncsourcetest", remote=False)
syncer = blocksync.Syncer(source_file, destination_file)
root@xp8rz2main2:/opt/btt2# ./btt2.py Traceback (most recent call last): File "./btt2.py", line 86, in <module> syncer = blocksync.Syncer(source_file, destination_file) TypeError: __init__() takes 1 positional argument but 3 were given
Is this an error in Module or am i doing something wrong?