Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document how the remote diskrsync is found #26

Open
grinapo opened this issue Sep 7, 2023 · 3 comments
Open

Please document how the remote diskrsync is found #26

grinapo opened this issue Sep 7, 2023 · 3 comments

Comments

@grinapo
Copy link

grinapo commented Sep 7, 2023

I noticed that diskrsync was pretty flexible in finding ./diskrsync at the remote end (it was not in the path). How is the remote called exactly, how does it try to find the remote program to run?

If you tell me I'll create a PR against the README if you want.

(Sidenote: the included help use -verbose format while the usage use --verbose format [double dash], maybe these shall be synced.)

@dop251
Copy link
Owner

dop251 commented Sep 11, 2023

It's run on the remote end exactly the same way as you ran it locally, i.e. if it's called with "./diskrsync" it will be called as "./diskrsync" on the remote.

As for the single dash, where do you see it? I can'r find any instances in the project.

@grinapo
Copy link
Author

grinapo commented Sep 11, 2023

  1. Would be nice if that was documented, don't you think?

  2. I guess it's the result of a go module.

$ ./diskrsync -h
Usage of ./diskrsync:
  -calc-progress
        Write calc progress
  -no-compress
        Store target as a raw file
  -source
        Source mode
  -ssh-flags string
        SSH flags
  -sync-progress
        Write sync progress
  -target
        Target mode
  -verbose
        Print statistics, progress, and some debug info

@dop251
Copy link
Owner

dop251 commented Sep 12, 2023

This looks like an output from an older version, this is what I get:

$ diskrsync -h
Usage of diskrsync:
      --cmd-path string    Remote command path (defaults to argv[0])
      --no-compress        Store target as a raw file
      --ssh-flags string   SSH flags
      --verbose            Print statistics, progress, and some debug info
pflag: help requested

(note "defaults to argv[0]"). BTW, when run without arguments it gives:

$ diskrsync
Usage: diskrsync [flags] <src> <dst>
src and dst is [[user@]host:]path

Flags:
      --cmd-path string    Remote command path (defaults to argv[0])
      --no-compress        Store target as a raw file
      --ssh-flags string   SSH flags
      --verbose            Print statistics, progress, and some debug info

Ideally, the output from -h should match this one. If you know how to do this, please open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants