How to move your data out of Amazon S3

Teams leaving Amazon S3 need to know what they can copy, what stays locked or costs extra to retrieve, and how to verify the result. This guide covers the documented export paths, the copy sequence with rclone, and what to settle before the AWS contract ends.

On this page

Export data from Amazon S3 in short: what moves, what stays and what it costs

Objects and their metadata can be read and copied out of Amazon S3 through the S3 API with standard tools, so the data itself is rarely the blocker. Egress charges, Glacier retrieval delays and Object Lock retention shape the plan. If your trigger is a renewal, an egress bill or a residency requirement, start by listing every bucket with its size, object count, storage class and whether any objects sit in Glacier classes, because each of these changes what the copy costs and how long it takes. Confirm current egress and retrieval rates on the AWS pricing pages for your region before you set a date, since these rates vary by region and change over time.

Bucket configuration, IAM policies, versioning history and Object Lock state do not travel with the objects. They must be recorded and recreated on the target. Object Lock only works in versioned buckets, and objects under compliance retention cannot be deleted or shortened until the retention period ends, so those objects either stay where they are until then or move as a planned copy with their retention rules rebuilt on the target. Amazon S3 Object Lock documentation describes these modes. Check the target before you choose it: Garage, for example, does not implement versioning, Object Lock or bucket policies, so a bucket that depends on any of them needs a different target or a redesign.

The copy is the easy part. Verification and cutover take most of the effort: compare object counts, byte totals, version counts and checksums between source and target, then test each application's credentials and endpoint against the new store. Keep the source bucket read-only until the reconciliation is signed off, and plan how long the source stays in place as a rollback option, since it keeps generating storage and request charges while it exists. rclone's S3 documentation covers the copy tooling and its provider settings, but you still need to confirm with your team and your target operator which checksum and metadata fields survive the transfer.

Which data types Amazon S3 exports and through which method

This table maps each kind of data held in an S3 bucket to the method that reads it out, the format it lands in and the limits to plan around. Use it to build the copy inventory before choosing a target store, since versions, storage classes and Object Lock state each need a separate check.

Data typeExport methodFormatDocumented limits
Object contents and key namesRead through the S3 API with rclone copy or syncObject as stored, no vendor containerCopying incurs S3 egress charges; confirm current rates in AWS pricing
Object metadata and checksumsRead through the S3 API headers and rclone flagsMetadata carried as S3 user metadata and checksum headersConfirm which headers your target store preserves before cutover
Versions in versioned bucketsList versions through the API and copy each version IDEach version stored as its own objectObject Lock works only in versioned buckets, so versions may be locked
Storage class per objectRead the class from object listings and record it in your inventoryClass stored as object attribute, not in the dataGlacier classes need restore requests and carry retrieval fees before copy
Bucket configuration (policies, lifecycle, versioning)Read through the bucket configuration API calls and export by handJSON or XML documents you transcribeNot moved by copy tools; recreate on the target and confirm support per store
Object Lock retention and legal holdsRead retention settings per object through the APISettings recorded as object attributesCompliance retention cannot be shortened, so copies may not clear it
Inventory or listing reportsConfirm the current listing or inventory export option in AWS documentationConfirm format and fields in AWS documentationConfirm availability and delivery limits before relying on it

What does not leave Amazon S3 with a copy command

Copying object bytes with rclone moves the data but not the rules around it. The cards below cover the configuration that stays behind in S3, what each target store supports, and the checks to run before you cut over.

Bucket policies and IAM permissions

Bucket policies, IAM roles and the access keys tied to them live in AWS, not in the objects. A copy carries none of them, so every application and user needs an identity in the target. Garage uses its own per-access-key, per-bucket permission system and does not implement bucket policies or ACLs, so access must be rebuilt as keys and grants. Ceph RGW supports bucket policies and ACLs, but the policy text still needs to be translated and tested. Export your current policies as files and review each statement against the target's model.

Garage S3 compatibility

Lifecycle and replication rules

Lifecycle transitions, expirations and cross-region replication are bucket configuration, so a copy leaves them behind. Garage supports lifecycle rules only for AbortIncompleteMultipartUpload and Expiration, and it does not implement replication or event notifications. Ceph RGW supports lifecycle, but its bucket replication works only across zones, not as a drop-in for AWS cross-region rules. Record each rule as code, such as a reviewed configuration file, and rebuild only the rules the target supports.

Ceph S3 API

Object Lock retention and legal holds

Object Lock settings are enforced by the bucket and stored per object, and they cannot be copied as a flag. Compliance retention cannot be shortened, so a retention status must be confirmed before any object is moved or deleted in the source. Garage does not implement object lock, so it cannot hold WORM data for backup immutability. Ceph RGW documents Object Lock in its S3 interface, which should be tested in a scratch bucket before you rely on it. Check retention and legal holds on every object before copying, and keep the source bucket intact until you have that evidence.

S3 Object Lock guide

Version history semantics

A copy of the current version does not reproduce the version chain, delete markers or version IDs of a versioned bucket. Garage does not implement bucket versioning, so older versions cannot be carried there at all and must be exported, flattened or archived elsewhere. Ceph RGW supports versioning, but you should confirm how it orders versions and delete markers after a copy. Decide whether the business needs history or only current objects, and document that decision before the migration starts.

Glacier restore state of archived objects

Objects in Glacier classes must be restored before they can be read, and a restore is temporary and billed. A copy command either fails on these objects or skips them, and restore state does not transfer to the target. Confirm the storage class and restore status of every archived object, start restores in the source, and wait for them to complete before copying. Ceph RGW can move cold data between pools with lifecycle transitions, but it does not reproduce Glacier retrieval terms, so plan the cold tier separately.

S3 storage classes

How egress tiers and Glacier retrieval fees shape the copy

Reading objects out of S3 to another network is billed as data transfer out, and that charge is the part of the exit most teams underestimate. The rate depends on how much data leaves AWS in a billing period and on the region the bucket sits in, so the same copy can cost very different amounts depending on where the bucket is and how fast you move it. Before you plan the copy, check the current tiers and the free monthly transfer allowance on the AWS S3 pricing page, and record the date you checked them. Do not carry figures from older articles or internal wikis into a budget, because transfer rates change and quotes from your account team may differ from list prices.

Objects in Glacier classes add a second cost layer. Before a Glacier object can be read, it must be restored, which takes time and carries a per-GB retrieval fee that varies by retrieval speed. Restore requests are also billed per request. Pull a storage inventory by storage class first, grouped by bucket and prefix, so you know how many gigabytes sit in each class and which of them need a restore before they can be copied. Then confirm the retrieval rates for each class on the same AWS pricing page and estimate the restore bill alongside the transfer bill. Ask your finance and procurement teams to approve both figures before any copy job starts, because a restore launched by a script can run far longer and cost far more than the team expects.

Use the inventory to sequence the work. Copy Standard and Standard-IA objects first, since they need no restore, and schedule Glacier restores in a separate wave so you can control when retrieval fees are incurred. Keep the restored copies in S3 until the target store is verified, and remember that a restored copy is temporary and expires on its own schedule. Note that S3 Object Lock compliance retention cannot be shortened, so any locked objects in the inventory must be read in place or left where they are, not deleted to free space. Record the transfer and retrieval totals for each wave so the final cost is reconciled against the estimate.

How the copy path runs from S3 to the target store

The copy starts in the AWS account, where archived objects in Glacier classes must be restored before they can be read. rclone then runs on a migration host inside your network, pulls objects across the trust boundary over S3 API calls, and writes them to the target endpoint, which is Ceph RGW, the SeaweedFS S3 gateway or Garage. The step most teams skip is verification: compare object counts, sizes and checksums between source and target before you switch applications to the new endpoint. Egress charges apply on the way out of AWS, so check them against the pricing you have confirmed.

Data path from the AWS source bucket to the target store, with the AWS trust boundary marked.

Choosing the target store before the first byte moves

Ceph RADOS Gateway (RGW) is the first target to test when your S3 usage depends on versioning, lifecycle rules or bucket policies. Ceph documents support for versioning, lifecycle, multipart uploads, ACLs and bucket policies, and RGW adds multisite configuration and AWS STS, IAM and SNS APIs. Ceph's source is licensed under LGPL-2.1 or LGPL-3, and the project offers no paid edition, so the license itself carries no fee. Bucket replication is documented only across zones, so plan a multisite design instead of assuming a second copy appears automatically.

  • Versioning and lifecycle: documented, so versioned buckets and expiration rules can usually be recreated after you export their configuration.
  • Bucket policies and ACLs: documented, but AWS policy documents must be reviewed and tested against RGW before cutover.
  • Object Lock: the Ceph S3 API documentation does not confirm the compliance and governance modes or legal holds you need, so verify them in the RGW release you deploy.
  • Server-side encryption: confirm which SSE modes your applications send and that RGW accepts them in your chosen release.
  • Release lifecycle: the active releases are Tentacle (20.2.x) and Squid (19.2.x), with different estimated end-of-life dates, so pick the release with the support window you need.

Confirm each of these features against the documentation for the exact release you will run, and test every S3 call your applications make against a staging gateway before you copy production data.

Sequence for a complete export with verification

This sequence moves every bucket out of Amazon S3 with a record of what was copied, how it was checked, and when the source can be retired. Each step ends with an artifact you can hand to the migration owner, your security team, or an auditor.

  1. Inventory buckets, versions and Object Lock state

    List every bucket in each AWS account and region, then record object counts, total bytes, versioning status, storage classes and whether Object Lock is enabled with its default retention. Include delete markers and noncurrent versions, because a copy that ignores them will not match the source. Store the inventory as a spreadsheet or CSV that the migration owner signs off. The step is done when every bucket has a row and each unknown is assigned to someone.

  2. Record policies, lifecycle and IAM configuration

    Export each bucket policy, lifecycle configuration, CORS rule, encryption setting and event notification, along with the IAM users, roles and access keys that reach each bucket. Note which of these the target store implements, because Garage and some other targets do not support every feature. Keep the exported JSON in version control with the inventory. The step is done when every setting is either mapped to a target equivalent or marked as a decision for the owner.

  3. Restore archived objects where needed

    Identify objects in Glacier Flexible Retrieval, Glacier Deep Archive or other archived classes, then start restores for the objects you need to copy. Retrieval delays and retrieval fees apply, so confirm the current rates on the AWS pricing page before you start. Confirm that each restored object is readable before the copy job begins. The step is done when restore status is recorded for every archived object and the copy list excludes anything still pending.

  4. Configure rclone and copy to the target

    Install rclone and confirm the version you test with, which is v1.75.2 (October 9, 2026) at the time of writing, and check it against the rclone S3 documentation for AWS and compatible providers. Create a remote for the source bucket and one for the target endpoint, then run a dry run before the real copy. Use checksum comparison and log output to a file so each run can be reviewed. The step is done when the copy completes without errors and the log is archived with the run date.

  5. Compare object counts, sizes and checksums

    For each bucket, compare object counts, total bytes and checksums between source and target, and include versions if you copied them. Investigate every mismatch before accepting the copy, and rerun the affected prefixes. Keep a verification report that lists the bucket, the counts on each side, the comparison method and any exceptions. The step is done when the report shows zero unexplained differences and a named person has approved it.

  6. Repoint applications and credentials

    Update application configuration to the new endpoint, rotate the access keys, and map each IAM principal to an equivalent identity on the target store. Test read, write and delete paths in a staging environment before production. Where the target lacks a feature such as versioning or Object Lock, record the compensating control and its owner. The step is done when each application has passed its tests and the credential inventory shows no remaining references to the old endpoint.

  7. Keep the source read-only until verification passes

    Before the cutover, change the source buckets to read-only through bucket policy or IAM, so writes cannot land there after the copy. Keep the source intact until verification passes and the target has run in production for a period your owner approves. Do not delete source buckets or disable Object Lock retention, because compliance retention cannot be shortened. The step is done when the source access change is logged and the decision to retire the source is signed by the owner.

Plan around Object Lock retention that cannot be shortened

Before you set a migration date, confirm with your compliance owner whether the source data can be copied at all. Object Lock only works in versioned buckets, and it offers two retention modes and legal holds. In governance mode, users with the right permissions can change or remove retention. In compliance mode, ordinary users cannot shorten the retention period, so protected object versions stay in place until retention ends. Legal holds add a separate block that stays until someone removes it. A copy you make with rclone does not carry these locks across. The lock belongs to the object version in the source bucket, and the destination store decides what protection, if any, it applies to a new object.

If the data must stay immutable, the target has to reproduce retention on its own terms. Garage does not implement object lock, versioning or bucket policies, so it cannot hold retained records at all. Ceph RADOS Gateway documents versioning and bucket policies, and its Object Lock implementation is the option to test against your retention rules before you commit to it. SeaweedFS support for retention should be confirmed directly with the project for your version. Ask the vendor or project for written proof of compliance-mode behavior, then test it with a sample bucket: write an object with retention, attempt deletion and shortening as a standard user, and record the results.

The Cohasset assessment of Amazon S3 covers the AWS service as it was assessed. It does not cover your Ceph, SeaweedFS or Garage deployment, the hardware, your administrators' access, or your retention procedures. Auditors will ask you to show those controls yourself. Treat the source bucket's retention as a constraint on the exit plan: keep the source data in place until retention expires, or decide with your compliance owner whether a retained copy is kept in S3 while active data moves. Record that decision before you cancel any S3 contract or delete source buckets.

What to plan before the AWS contract ends

Leaving S3 is less about copying bytes than about keeping obligations alive while the data moves. The cards below cover the items that most often slip when a bucket migration is treated as a pure data transfer. Confirm each one with AWS, your auditors and your application owners before the source account is closed.

Parallel run and read-only window

Plan a period in which both S3 and the target store serve traffic, and a later period in which the source is read-only so late writes do not split the data set. Set the length from your change calendar and application write patterns, not from a default. Confirm with AWS how bucket policies or an SCP can enforce read-only access on the source during the cutover, and confirm with your application owners which services write to each bucket.

S3 storage classes

Retention and legal hold obligations

Objects under Object Lock compliance retention cannot be shortened or deleted before their retain-until date, and legal holds stay in force until removed. Identify every bucket with Object Lock, list the retain-until dates and legal holds, and decide how each record keeps its retention on the target. Ceph RGW can carry Object Lock, but Garage does not implement it, so this item can rule out a target. Confirm the requirement with your records owner and your auditors.

S3 Object Lock docs

Isolated recovery copy

CIS Controls v8.1 Safeguard 11.4 asks for an isolated instance of recovery data, such as an offline, cloud or off-site copy with version control. Decide where that copy lives once S3 is gone, because a single self-hosted cluster that replicates every change can replicate a bad delete too. Document the destination, its access path and its separation from production credentials, and confirm with your auditors that the design meets how you interpret the safeguard.

CIS Control 11 specification

Credentials and endpoints to rotate

Every application, CI job, backup tool and partner integration that points at an S3 endpoint or uses an IAM access key needs a new endpoint and new credentials. Inventory them from access logs, IAM credential reports and configuration repositories, then map each IAM principal to a target identity. Plan the rotation so old keys are revoked only after validation, and check that no hard-coded keys remain in code or pipelines.

Archived data restore plan

Objects in Glacier classes must be restored before they can be read, and restores carry retrieval delays and fees set by AWS. Identify archived objects that must move, decide whether to restore them before the copy or to leave them in place until the source closes, and confirm the retrieval terms and expiry of restored copies with AWS for your region and class. Budget the restore work as its own step with its own checks.

Final deletion and evidence

Before deleting source buckets, confirm object counts, checksums and version histories on the target, and confirm that no retention or legal hold remains on any object you intend to delete. Keep a dated record of the reconciliation, the access revocations and the deletion, because auditors will ask for it. Ask AWS how bucket and account closure handles residual data, and ask your auditors which evidence they expect to see.

Questions teams ask before exporting from Amazon S3

What does it cost to export data out of Amazon S3?

Most of the cost is egress, the fees AWS bills for data leaving S3 for the internet or another region, and it is usually the largest single line in an exit. Egress is priced by volume tier, a small monthly allowance is free, and rates differ by source region. Other charges to model are request fees for every object read or listed, and retrieval fees plus minimum storage duration charges for objects in Glacier classes. These charges recur only while you read or restore data, so the cost falls if you copy once in a planned window and delete nothing until verification passes. Confirm current rates for your region on the S3 pricing page, and check the storage classes documentation for what each class charges to retrieve.

How long does copying data out of S3 take?

The pace is set by the slowest link: total data volume, the bandwidth between AWS and your target store, and how many transfers run in parallel. No duration can be promised without measuring throughput on your own data. Object count matters as much as total bytes, because millions of small objects add per-request overhead that a few large files do not. Objects in Glacier classes need a restore before they can be copied, which adds a wait before the transfer starts. In rclone, the --transfers and --checkers flags control parallelism, and tuning them against what the target can absorb is usually the biggest lever. Ask for a pilot on a representative bucket, measure the throughput, and size the cutover window from that measured rate.

What does the migration need from our own staff?

It needs four things from your side: target storage sized for the migrated data plus the overhead of replication or erasure coding, IAM permissions to read the source buckets and credentials for the copy job, network paths from the copy host to both stores, and a named owner who signs off on verification. The owner matters most. That person decides which buckets and prefixes move, how mismatches are handled, and when the source can be retired. Application teams must also list every endpoint and credential that changes at cutover. Confirm these approvals with your security and network teams before the pilot, since access and change approvals can set the schedule as much as the transfer does.

Can our team export from S3 without outside help?

Yes, for a simple exit. A few buckets with plain objects, no versioning, no Object Lock, and no bucket policies or event rules that applications depend on can often be copied and checked in-house by an engineer comfortable with rclone. Outside help becomes worth scoping when buckets use versioning, lifecycle rules, presigned URL workflows or Object Lock, when many applications depend on the existing endpoints, or when auditors expect documented controls and evidence. DeployOpen plans, implements, integrates, hardens and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks, and most engagements are fixed-scope with deliverables agreed in writing. A short inventory of your buckets is the best starting point for deciding which group you fall into.

What should a written scope for an S3 export include?

A written scope should name the following:

  • The buckets and prefixes in scope, with object counts, total size, versioning state and storage classes
  • The target store (Ceph RGW, SeaweedFS or Garage) and the S3 features each bucket depends on, checked against that store's support
  • The copy method, the verification method (object counts, sizes and checksums) and how failed objects are retried
  • The cutover steps for each application endpoint and credential, with a rollback path
  • Deliverables, named owners, the timeline and what is excluded

Ask for the quote to price each component separately, such as assessment, build, copy runs, testing, documentation and any retainer, and state which items are one-time and which recur.

Can data protected by S3 Object Lock be moved out?

Yes, but it needs planning, because Object Lock is built so retention cannot be shortened. In compliance mode, no user can delete or overwrite a locked version until its retention period ends, so the source copy stays locked in place until then. A plain copy does not carry the lock to the target, so equivalent retention must be configured on the target before locked data lands there. Garage does not implement Object Lock, so it cannot hold locked data. Confirm with your compliance team and auditor which controls the target must provide, and keep the source until retention expires and the copy is verified. Read the Object Lock documentation for how each retention mode behaves on the source side.

How do we confirm the copy is complete before cutover?

Verification compares what left the source with what arrived. Check object counts, total bytes and checksums for each bucket, and for versioned buckets compare version counts too, because copying only current objects loses history. rclone can compare by size and hash where both backends expose matching hashes, and its S3 documentation covers the providers involved, so confirm the comparison your store pair supports before relying on it. Log every mismatch, rerun only the affected keys, and record the results. The named owner signs off on the report, and only then do applications switch endpoints. Keep the source readable for an agreed period after cutover so any gap can still be recovered.

How DeployOpen scopes, delivers and supports an exit from Amazon S3

DeployOpen plans and implements the exit from Amazon S3 inside your own infrastructure, from the written scope through to handover and ongoing support. Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any copying starts.

How we scope

  • Inventory buckets, object counts, versioning and Object Lock settings, lifecycle rules and bucket policies before choosing a target.
  • Identify which S3 features your applications depend on, since Garage and some other targets do not implement all of them.
  • Agree in writing the target store, copy method, cutover approach and validation criteria for each bucket and its data.

How we build

  • Deploy the chosen self-hosted S3-compatible store in your cloud accounts, data centers or air-gapped network with access control and audit logging.
  • Copy data with rclone, planning for the egress charges your AWS account will incur, and verify object counts and checksums per bucket.
  • Recreate or map bucket policies, lifecycle rules, versioning and IAM-style access to target identities, then test each application against the new endpoint.

How we hand over

  • Document the target architecture, configuration, credential handling, backup destinations and the cutover runbook for your own teams.
  • Provide validation evidence per bucket, including object count reconciliations and checksum results, for your compliance and security reviewers.
  • Record the controls that remain your responsibility, such as retention evidence and independent assessment, since DeployOpen does not issue audit reports or certifications.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the cutover is complete.
  • Security testing of the new storage platform, including applications and APIs and cloud and infrastructure, can be added to the written scope.
  • Confirm with DeployOpen during scoping which support level, upgrade cadence and testing frequency your team needs before work begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.