GithubHelp home page GithubHelp logo

0leksandr / sshmirror Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 3.0 3.01 MB

Fast, one-directional remote filesystem synchronization client

License: BSD 3-Clause "New" or "Revised" License

Go 99.47% Shell 0.53%

sshmirror's People

Contributors

0leksandr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sshmirror's Issues

FS Changes are not tracked

For some reason my fs changes are not tracked by sshmirror tool.

once the connection is established and "done" message was written - nothing else happens anymore.

Running the tool with strace shows an output like this every time when I save changes into the file (so the the FS changes seems to be noticed, but it just don't proceed with them)

) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0xc000200550, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL

Ubuntu 20.04

Linux KUBUNTU 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

FS events windows 10 WSL1

It looks like on Windows 10 + WSL 1 (when running sshmirror inside WSL) each time when some file was changed - also the "folders" are being received as an "event".

This causes sshmirror to crash as in some cases the root folder is being sent too, and

filename := event.Name[len(config.localDir)+1:]
is raising an error then as +1 size is outside the allowed bounds.

In my case I was able to solve the issue just by skipping (right before the mentioned code-line) the events if the "folder" is being reported, but I`m wondering what may be the ripple effect for this?

            fi, err := os.Stat(event.Name)
            if err != nil || fi.IsDir() {
                return
            }

my.go is missing

the current master do not contain the my.go file which is linked through a symlink in the latest commit

linux/amd64
can't load package: package github.com/0leksandr/sshmirror: open /media/k/SSD2/ApacheServer/web/2021/mobymax/sshmirror/my.go: no such file or directory
Build failed for linux/amd64

building the version before this my.go change - works just fine

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.