Git Product home page Git Product logo

syncd's People

Contributors

benjaminjackman avatar codeasashu avatar dasjo avatar fago avatar

Stargazers

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

Watchers

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

syncd's Issues

Support for multiple destinations

I would like to make use of this script to sync the single source directory to multiple hosts that share the same destination directory.

If I present a list of host names in the config file, ideally it would iterate over them and issue the rsync command to each one.

SSH_HOST = fileserver-1.dm.com, fileserver-2.dm.com something like this possible?

Is this project still maintained?

This looks exactly like what I need. I'm going to be using something like this in development, since I need to sync with a development server. The lack of activity on this PR is a little concerning though. Is this project still actively maintained?

Create option to not include --delete option

Not every rsync setting should includes --delete option to rsync.
It's like I don't want much clutter to be downloaded from a remote site.
If I'm not very carefull of adding every folder to the --exclude options then I'll be in big big trouble.

Syncd asks for SSH password, but doesn't allow enough time for it to be entered.

I'm having an issue with syncd, where having set it up as per the ReadMe, on making any changes I am not given any time to enter my ssh password and get an error.

Steps to replicate:

  1. Run syncd start
  2. Make changes to a file (with file and terminal open side by side)
  3. Go to terminal, (see pasted output below)

The password prompt appears mulitple times, but automatically goes straight to permission denied a number of times, without me having had the chance to enter my ssh password. As expected this causes rsync to fail.

Syncd then appears to hang, and there is no further updates to the output. However, while further changes do get added to the log, nothing gets synced.

Output from command:

Starting syncd...
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender] sent 130,268 bytes received 52,551,969 bytes 2,065,970.08 bytes/sec
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1] total size is 52,090,545 speedup is 0.99
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender] no changes added to commit (use "git add" and/or "git commit -a")
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]

local use case

Just want to use syncd locally but script is only set up for ssh.

I just changed this line

COMMAND="rsync $RSYNC_OPTIONS --exclude=$RSYNC_EXCLUDE --delete $WATCH_DIR/ $SSH_USER@$SSH_HOST:$REMOTE_TARGET_DIR"

to

COMMAND="rsync $RSYNC_OPTIONS --exclude=$RSYNC_EXCLUDE --delete $WATCH_DIR/ $REMOTE_TARGET_DIR"

Would be sweet if the SSH setting were not supplied (commented out) then the script would assume local.

Would be even sweeter if I made a PR. Bash is not my bag but I'll give it a shot when I have some "spare time".

Thx...great little repo!

add non standard port

add to syncd
--rsh \"ssh -p $PORT\"
in
COMMAND="rsync $RSYNC_OPTIONS --exclude=$RSYNC_EXCLUDE --delete $WATCH_DIR/ --rsh \"ssh -p $PORT\" $SSH_USER@$SSH_HOST:$REMOTE_TARGET_DIR"

To syncd.conf add
PORT=22

And in syncd change line to

run)
     eval $COMMAND && echo Done.
    ;;

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.