# NOT RUN {
put_bucket("examplebucket")
# sync all files in current directory to bucket (upload-only)
s3sync(bucket = "examplebucket", direction = "upload")
# two-way sync
s3sync(bucket = "examplebucket")
# full sync between a subset of the bucket and a test directory in user's home
# corresponding roughly to:
# aws s3 sync ~/test s3://examplebucket/test/
# aws s3 sync s3://examplebucket/test/ ~/test
s3sync("~/test", "examplebucket", prefix="test/", region="us-east-2")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab