Skip to contents

AWS S3 Sync Helper

Usage

s3sync(src, dest, pats = NULL, dryrun = FALSE)

Arguments

src

(character(1))
S3 source path.

dest

(character(1))
Local destination path.

pats

(tibble())
Patterns tibble with inex ("in" or "ex") and pat (pattern) columns.

dryrun

(logical(1))
If TRUE, passes --dryrun to aws s3 sync so operations are displayed without being executed.

Examples

if (FALSE) { # \dontrun{
src <- "s3://my-awesome-bucket/path/to/run1"
dest <- sub("s3:/", "~/s3", src)
pats <- tibble::tribble(
  ~inex, ~pat,
  "ex", "*",
  "in", "*.mapping_metrics.csv"
)
s3sync(src, dest, pats)
} # }