R/s3.R
s3sync.Rd
AWS S3 Sync Helper
s3sync(src, dest, pats = NULL, dryrun = FALSE)
(character(1)) S3 source path.
character(1)
(character(1)) Local destination path.
(tibble()) Patterns tibble with inex ("in" or "ex") and pat (pattern) columns.
tibble()
inex
pat
(logical(1)) If TRUE, passes --dryrun to aws s3 sync so operations are displayed without being executed.
logical(1)
TRUE
--dryrun
aws s3 sync
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) } # }