pressly / sup

Super simple deployment tool - think of it like 'make' for a network of servers
https://pressly.github.io/sup
MIT License
2.49k stars 177 forks source link

[WIP] Added support to RSYNC upload #69

Closed eduardonunesp closed 8 years ago

eduardonunesp commented 8 years ago

Now you are able to upload your files using rsync, is similar to the upload method, but uses rsync command instead. The flags at command are: -a for archive mode and -c to check files that need to be sync by checking the hash of the file.

Example of config:

version: 0.3

env:
  TMP_DIR: /tmp/mydir

networks:
  local:
    hosts:
      - localhost

  dev:
    hosts:
      - docker@192.168.99.100
      - docker@192.168.99.102

commands:
  pre-build:
    run: mkdir $TMP_DIR; exit 0

  build:
    rsync:
      - src: ./src/
        dst: $TMP_DIR

  test:
    run: $TMP_DIR/test.sh

targets:
  deploy:
    - pre-build
    - build
    - test
VojtechVitek commented 8 years ago

This is great stuff @eduardonunesp!

eduardonunesp commented 8 years ago

Updated to default RSYNC and fallback to Tar. Please take a look, for another suggestion :D

VojtechVitek commented 8 years ago

@eduardonunesp The logic should be more complex. We need to fall-back to tar if any of the remote servers doesn't support rsync too.

eduardonunesp commented 8 years ago

That's interesting, I just forgot that little detail :D

VojtechVitek commented 8 years ago

@eduardonunesp are you going to finish this PR? Or do you want me to take over?

eduardonunesp commented 8 years ago

@VojtechVitek right now I'm too busy, but feel free to finish if you want. I would be grateful to see this finished. Thanks 🙏

burka commented 5 years ago

Is this merged or is there any ongoing effort to merge it? Pull #77 seems to have some fallback to tar included but wasn't merged, if I see it correctly? What is missing for a merge?