rsync_remote: Rsync files between machines

Description Usage Arguments Specifying a remote

View source: R/ssh.R

Description

A wrapper around the rsync shell command that allows copying between remote hosts via the local machine.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 "yes" to delete files at the remote.

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:


rcannood/PRISM documentation built on Sept. 24, 2021, 11:10 p.m.