Copy file/dir from remote server to local server
Arguments
- host
list with server, user and optionally tunnel to use.
- src
remote file/dir to copy
- dst
local file/dir to copy to
- options
to be passed to rsync command, if nothing is specified everything will be rsynced
- delete
in case of local dir should all non-existent files be removed
- stderr
should stderr be returned
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
if (FALSE) { # \dontrun{
host <- list(name='geo.bu.edu', user='kooper', tunnel='/tmp/geo.tunnel')
remote.copy.from(host, '/tmp/kooper', '/tmp/geo.tmp', delete=TRUE)
} # }