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

problem using scp on a complete folder tree #44

Open
luca-scr opened this issue Oct 9, 2020 · 0 comments
Open

problem using scp on a complete folder tree #44

luca-scr opened this issue Oct 9, 2020 · 0 comments

Comments

@luca-scr
Copy link

luca-scr commented Oct 9, 2020

I have an issue when I'm trying to ssh copy a complete local folder tree to a remote server.
Here is the skeleton code I used:

library(ssh)
session <- ssh_connect("<user>@<server.address>")
scp_upload(session, files = "~/<local_path>/<folder>", to = "~/<remote_folder>")
ssh_disconnect(session)

The problem is that files are recursively copied from "~/<local_path>/<folder>" to "~/<remote_folder>/<folder>" and not to "~/<remote_folder>" as I would like to get.
Any hints are welcomed.

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

1 participant