I want to use this command

~/tools/app$ rsync -avze ssh user@server:src/app/* .

to load all files from remote folder src/app into my local folder tools/app. But instead, rsync creates a new folder tools/app/app and puts the files there.

It works when I use a command in the parent directory and just sync the folders, but why it does not work this way from within the folder?

  • What if you use rsync -avze ssh user@server:src/app/* ..? – Nattgew Nov 7 '17 at 17:13
  • produces the same problem.... – Jeno Nov 7 '17 at 21:51

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.