Copy file/dir from remote server to local server

remote.copy.from(host, src, dst, delete = FALSE, stderr = FALSE)

Arguments

host

list with server, user and optionally tunnel to use.

src

remote file/dir to copy

dst

local file/dir to copy to

delete

in case of local dir should all non-existent files be removed

stderr

should stderr be returned

Value

output of command executed

Details

Copies the file/dir from the remote server to the local server. If the dst is a folder it will copy the file into that folder.

Examples

# NOT RUN {
  host <- list(name='geo.bu.edu', user='kooper', tunnel='/tmp/geo.tunnel')
  remote.copy.from(host, '/tmp/kooper', '/tmp/geo.tmp', delete=TRUE)
# }