Giter Club home page Giter Club logo

blocksync's Introduction

Hi there πŸ‘‹

  • πŸ”­ I'm working on Yogiyo
  • 🌱 I’m learning Rust
  • πŸ’¬ Ask me about "What is your vision in God πŸ™
  • πŸ“« How to reach me: [email protected]
  • πŸ˜„ Pronouns: Cat allergy man 🀧
  • ⚑ Fun fact: I have a very cuuuuuute cat. 🐈

blocksync's People

Contributors

ehdgua01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blocksync's Issues

example does not work: __init__() takes 1 positional argument but 3 were given

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?

sync does not work with lvm devices

i tried to set both source and destination-file to a lvm-device, everything seems OK, but running sync-scripts executes only some seconds (same data as regular files take around minute).

After doing some debugging with my poor python-skills i know that end_pos is zero on this line and syncer exists after only one loop here:

if end_pos <= self.source.execute_with_result("tell"):

and this is maybe because this lines are not executed

chunk_size = self.source.size // workers
end_pos = chunk_size * worker_id

i think because of an error in the try-block which isnΒ΄t raised correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.