rsync_remote {qsub} | R Documentation |
Rsync files between machines
Description
A wrapper around the rsync shell command that allows copying between remote hosts via the local machine.
Usage
rsync_remote(
remote_src,
path_src,
remote_dest,
path_dest,
compress = TRUE,
delete = "no",
exclude = NULL,
verbose = FALSE
)
Arguments
remote_src |
Remote machine for the source, see the section below 'Specifying a remote'. |
path_src |
Path of the source file. |
remote_dest |
Remote machine for the destination, see the section below 'Specifying a remote'. |
path_dest |
Path for the source file; can be a directory. |
compress |
Whether or not to compress the data being transferred. |
delete |
Whether or not to delete files at the target remote. Use |
exclude |
A vector of files / regexs to be excluded. |
verbose |
Prints elapsed time if TRUE. |
Specifying a remote
A remote can be specified in one of the following ways:
A character vector in format
user@ipaddress:port
,The name of a Host in the
~/.ssh/config
file,FALSE
for the local machine,TRUE
for the default remote specified asget_default_qsub_config()$remote
.