Skip to contents

Syncs parse-relevant WiGiTS outputs from src to dest. Include patterns come from the tool schema globs (see nemo::wf_s3sync_patterns()), followed by the WIGITS_S3SYNC_EXCLUDE list.

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. If NULL and workflow is given, the workflow's schema-derived patterns are used (see wf_s3sync_patterns()); if both are NULL, everything is excluded.

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)
s3sync(src, dest, dryrun = TRUE)

# inspect what would be pulled down
nemo::wf_s3sync_patterns("wigits")

# override with your own patterns
pats <- tibble::tribble(
  ~inex, ~pat,
  "ex", "*",
  "in", "*purple/*.purple.qc"
)
s3sync(src, dest, pats, dryrun = TRUE)
} # }