Copy objects between S3 buckets
copy_object(
from_object,
to_object = from_object,
from_bucket,
to_bucket,
headers = list(),
...
)copy_bucket(from_bucket, to_bucket, ...)
A character string containing the name the object you want to copy.
A character string containing the name the object should have in the new bucket.
A character string containing the name of the bucket you want to copy from.
A character string containing the name of the bucket you want to copy into.
List of request headers for the REST call.
Additional arguments passed to s3HTTP
.
Something...
copy_object
copies an object from one bucket to another without bringing it into local memory. For copy_bucket
, all objects from one bucket are copied to another (limit 1000 objects). The same keys are used in the old bucket as in the new bucket.