welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 167 forks source link

Rsync path #440

Closed Mte90 closed 6 years ago

Mte90 commented 6 years ago

Actually we have a vps where rsync is on a specific folder and not the usual one but remotely seems that there isn't a parameter to specify where is the command.

alessandro-fazzi commented 6 years ago

Hello @Mte90 ,

that's a fact. What's the question?

Mte90 commented 6 years ago

In few words a parameter in wordmove.yaml file where is possible to specify the path for rsync remotely

alessandro-fazzi commented 6 years ago

Understood. Fortunately rsync already handle such situations itself with the --rsync-path option.

Cheers :)

Mte90 commented 6 years ago

So how I can do that? There is no docs for that but https://github.com/welaika/wordmove/issues/392 looking there seems something that can be handled with rsync_options. I will try it.

alessandro-fazzi commented 6 years ago

No docs for that? Tried to search rsync in wikis? We have tons of docs outside of the main README.

here, under the production.ssh key explanation. Moreover in the movefile.yml generated by init you should find

  # ssh:
  #   host: host
  #   user: user
  #   password: password # password is optional, will use public keys if available.
  #   port: 22 # Port is optional
  #   rsync_options: --verbose --itemize-changes# Additional rsync options, optional
  #   gateway: # Gateway is optional
  #     host: host
  #     user: user
  #     password: password # password is optional, will use public keys if available.

Hope it helps

Mte90 commented 6 years ago

Yes, sorry from your comment seems wasn't clear that I have to use rsync_options for this parameter. I was thinking that was already a parameter in wordmove specific for that.

alessandro-fazzi commented 6 years ago

Oh no! My bad, you are right! :D