# How to Migrate Large Data Archives to S3-Compatible Storage Without Disrupting Workflows

> <table style="min-width: 25px;"><colgroup><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p><strong>TL;DR</strong></p></td></tr></tbody></table>
>
> - Inventory before you plan. Object count and size distribution decide the schedule far more than total terabytes do. Forty TB spread across 200 million small objects is a request-rate problem, and more bandwidth will not fix it.
> - Pilot on the worst prefix you own, not a representative one, and extrapolate from object rate rather than from gigabytes per second.
> - Set the multipart chunk size on purpose. rclone's 5 MiB default against the 10,000 part ceiling caps a streamed upload at about 48 GiB.
> - ETag equals MD5 only for single-part uploads, so matching object counts and matching ETags are not integrity verification. Use stored checksum algorithms or an independent manifest.
> - Cut over in four reversible steps and keep the source bucket intact until verification passes. Deleting the source is the last step of the migration, not part of cutover.

## **What breaks when you migrate data to S3-compatible storage**

Archive migrations rarely fail during the copy. They fail afterwards, when someone finds that Content-Type was flattened across two million files, that the verification pass was planned but never run, or that one reporting service is still writing to the old endpoint three days after cutover. The decision to migrate data to S3-compatible storage takes an afternoon. Moving a live archive without stopping the workflows that read from it takes a sequence.

That sequence is the subject here: inventory, pilot, multipart sizing, checksum verification, metadata preservation, transfer monitoring, cutover and rollback. It assumes the destination is already chosen and you are the person now responsible for getting the bytes there intact.

<img src="https://cdn.hashnode.com/uploads/covers/67a20ef8875434c6d881b8a5/3f373436-6fc5-4ea2-895e-3933343c0eb8.png" alt="" width="650" height="275" />

*Figure 1. The seven stages of an archive migration. The source stays authoritative until verification signs off.*

**Inventory the archive before you open a transfer tool**

A total size figure tells you almost nothing. "47 TB" does not predict the copy window, the failure modes, or the bill. The shape of the archive does.

Collect four things first.

- **Object count and size distribution.** rclone size remote:bucket returns count and bytes. For buckets past a few million keys, use the provider's inventory report rather than a live listing: paginating 50 million keys at 1,000 per request is 50,000 round trips before you have moved a single byte.
- **Prefix layout.** Transfers parallelise by prefix. An archive where 80 percent of the data sits under one prefix will not spread across workers without manual splitting.
- **Versioning and lifecycle state.** Non-current versions, delete markers and incomplete multipart uploads are all billable and none of them appear in a standard object listing. Decide explicitly whether version history travels.
- **Access model.** Per-object ACLs, bucket policies, presigned URL patterns and any service accounts that read the archive today.

The size distribution is the number that sets the plan. Forty TB in 20,000 objects of 2 GB each is a bandwidth problem, and the levers are chunk size and link capacity. Forty TB in 200 million objects of 200 KB each is a request-rate problem, and the levers are parallelism and listing strategy. Teams that size a migration on terabytes alone usually discover this in week two.

<img src="https://cdn.hashnode.com/uploads/covers/67a20ef8875434c6d881b8a5/3238b51d-07bc-4222-9e05-ae5ca4020933.png" alt="" width="650" height="346" />

*Figure 2. The same 40 TB produces two different migrations. Classify the archive before choosing a tool or a window.*

**Run the pilot on your worst prefix**

A pilot should not be representative. Pick the prefix with the smallest average object size, the deepest key nesting, and the most non-ASCII or reserved characters in key names. That is where the migration will break, so break it early and cheaply.

The pilot produces four outputs:

- Sustained throughput from the transfer host to the destination endpoint, measured in both GB per hour and objects per hour.
- An error profile. 403s point at signature or clock drift, 400s often at key characters, and 503 SlowDown at request-rate limits on either side.
- Proof that metadata survived, checked object by object rather than assumed.
- A wall-clock extrapolation you can defend.

Extrapolate on the slower of the two rates. If a pilot moves 400 GB in 90 minutes, a 40 TB archive is roughly 150 hours of copy time before retries, before the verification pass, and before the final delta sync. Budget verification separately. It reads metadata for every object again, and if it downloads content it costs egress at the source a second time.

**Size multipart uploads to your objects, not to the default**

The S3 API caps a multipart upload at 10,000 parts, with each part between 5 MiB and 5 GiB. Part size therefore sets a hard ceiling on object size: 10,000 multiplied by your chunk size. rclone defaults to a 200 MiB upload cutoff, a 5 MiB chunk size and an upload concurrency of 4. Those defaults put the ceiling for an upload of unknown size at roughly 48 GiB, which is the failure most large-archive migrations hit first.

<img src="https://cdn.hashnode.com/uploads/covers/67a20ef8875434c6d881b8a5/7bc9146c-3fa8-48a6-9182-a295f4c03142.png" alt="" width="650" height="331" />

*Figure 3. Multipart upload mechanics. Chunk size multiplied by the 10,000 part ceiling is your maximum object size.*

Three settings interact, and the interaction is multiplicative rather than additive. Peak in-flight data is --transfers multiplied by --s3-upload-concurrency multiplied by --s3-chunk-size. Four transfers, four concurrent parts and a 128 MiB chunk is about 2 GiB of RAM on the transfer host. Raise chunk size for throughput, then lower concurrency if the host starts swapping.

rclone copy source:archive zata:archive \\

  --s3-upload-cutoff 256M \\

  --s3-chunk-size 128M \\

  --s3-upload-concurrency 8 \\

  --transfers 16 \\

  --checksum \\

  --stats 30s \\

  --log-file migration.log --log-level INFO

One cleanup step that gets skipped: abort incomplete multipart uploads. Parts from interrupted transfers stay in the bucket, consume storage, and do not appear in a normal ListObjectsV2 response. List them with aws s3api list-multipart-uploads and set a lifecycle rule to abort them automatically. On a migration with thousands of retries, this is real money.

**Verify with checksums, and know why ETag will lie**

An object's ETag is an MD5 of the content only when the object was uploaded in a single part. For a multipart upload, the ETag is an MD5 over the concatenated part checksums, followed by a hyphen and the part count. It depends on the chunk size used at upload time, which means two byte-identical objects uploaded with different part sizes carry different ETags.

Two consequences follow. Comparing object counts and total bytes between source and destination is not verification. Comparing ETags across two providers is not verification either.

<img src="https://cdn.hashnode.com/uploads/covers/67a20ef8875434c6d881b8a5/ab4230f4-34a0-4e95-880a-a59a3f0b9eb3.png" alt="" width="650" height="342" />

*Figure 4. ETag equals MD5 only for single-part uploads, which is why counts and ETags are not integrity checks.*

Three approaches that do work:

1. **Tool-level comparison.** rclone check --checksum compares hashes where both ends can supply them. Where they cannot, rclone check --download re-reads content, which is accurate and expensive.
2. **Stored checksum algorithms.** Request CRC32, CRC32C, SHA-1 or SHA-256 at upload time and the value is stored as an object attribute you can read back without downloading. Confirm the destination supports the algorithm before you depend on it.
3. **Independent manifest.** Hash at the source, store the list outside both systems, re-hash at the destination. This is the approach to use for anything with a retention or audit obligation, because it does not trust either provider's bookkeeping.

Sampling is a legitimate choice for bulk content, as long as the sample is random and the sample size is written down. Full verification is the right choice for regulated data. Decide which applies per prefix, before the copy starts, and record the decision.

**Preserve the metadata the workflow actually reads**

Object bytes are the easy part. What breaks published workflows is metadata that quietly did not travel.

<img src="https://cdn.hashnode.com/uploads/covers/67a20ef8875434c6d881b8a5/d888eed0-00d1-4ab9-a25e-7337e38cb86e.png" alt="" width="650" height="301" />

*Figure 5. Metadata that travels by default, metadata that needs a flag, and metadata that needs a separate pass.*

The usual casualties:

- **Content-Type and Content-Encoding.** Lose these and browsers download images instead of rendering them, and gzip-encoded objects arrive unreadable.
- **Cache-Control.** A CDN in front of the new bucket will behave differently overnight.
- **User metadata** (x-amz-meta-\*). Carried by rclone's --metadata flag for S3 to S3 copies, dropped without it.
- **Object tags.** A separate API surface from metadata. Most copy tools do not move them, so plan a second pass with GetObjectTagging and PutObjectTagging.
- **Versions.** Copy tools move current versions by default. Version history moves only if you walk and write each version deliberately.
- **Timestamps.** Creation time at the destination is the time of write. Original modification time survives only when the tool stores it as user metadata, which is what rclone does.
- **ACLs.** Per-object ACLs may not be honoured identically at the destination. Re-express intent as a bucket policy where you can.

Pick the subset your applications read, then verify that subset on the pilot rather than at the end. Metadata preservation is cheap to test on 400 GB and painful to retrofit across 40 TB.

**Instrument the transfer before it becomes unanswerable**

A three-week copy that reports only a progress bar cannot be managed. Emit four series and keep them.

- Throughput in bytes per second and in objects per second, separately.
- Errors broken out by class, not a single counter.
- Retry rate as a proportion of requests.
- Remaining object count against the inventory baseline.

\--stats 30s with --log-file is the minimum. Running rclone rcd --rc exposes core/stats as JSON on a local port, which scrapes cleanly into Prometheus and renders in Grafana alongside the rest of your infrastructure. NeevCloud's [<u>Prometheus and Grafana monitoring guide</u>](https://docs.neevcloud.com/neevcloud-products/monitoring/smart-monitoring-with-prometheus-and-grafana) covers that setup on an instance you can run the transfer from.

Watch the retry rate more closely than the throughput number. Rising 503 responses mean you are over the request budget somewhere, and retries will consume the throughput you thought you were gaining. Back off --transfers and the aggregate usually improves.

**Treat cutover as four reversible steps**

Cutover is not a flag flip. It is a sequence where each step is individually reversible, and read traffic moves before write traffic because reads are the easiest thing to put back.

<img src="https://cdn.hashnode.com/uploads/covers/67a20ef8875434c6d881b8a5/184d1049-d1dc-4805-b96d-99c9e8f6ec30.png" alt="" width="650" height="308" />

*Figure 6. Cutover as four individually reversible steps, with the rollback window held open behind them.*

1. **Bulk copy completes.** Source remains authoritative. Nothing in the application has changed.
2. **Delta sync loop.** Run rclone sync on a schedule until the per-run delta is small and predictable. You are looking for a stable number, not a zero.
3. **Read cutover.** Point read paths at the new endpoint. Writes continue to the source and the delta loop keeps running. Reverting is one config value.
4. **Write cutover.** Freeze writes for a short window or dual-write, run a final sync, then move the write path.

Keep the endpoint in an environment variable rather than in code, so reverting is a restart instead of a deploy. For boto3 that is s3.endpoint_url, and for most CLI tooling AWS_ENDPOINT_URL. A ZATA bucket is addressed at its regional endpoint, for example <https://idr01.zata.ai>, which is the same form used when you point a [<u>Restic backup repository on Zata S3</u>](https://docs.neevcloud.com/neevcloud-guide/neevcloud-remote-backup-and-dr/automated-instance-backup-to-zata-s3-using-restic) at a bucket. If the archive is coming from AWS, the [<u>documented AWS S3 to NeevCloud S3 migration path</u>](https://docs.neevcloud.com/neevcloud-products/storage/s3-data-migrations/migrate-from-aws-s3-storage-to-neevcloud-s3-storage) shows the equivalent rclone remote configuration end to end. When the archive is large enough that the delta loop and the cutover window need owners and a rehearsal, [<u>ZATA data migration services</u>](https://zata.ai/solutions/data-migration-services) run this sequence as a managed engagement.

**Keep rollback cheap until verification passes**

Rollback is not a document. It is a set of options you deliberately keep open, and each one costs something to hold.

- **Retain the source.** Keep the source bucket intact and billable for a defined period tied to the verification window, not to a vague sense of caution. Write the date down.
- **Define abort criteria in advance.** Checksum mismatch count, error rate, p95 read latency regression. Thresholds agreed before cutover are decisions; thresholds argued during an incident are not.
- **Capture post-cutover writes.** Anything written to the new target after the write cutover has to be replayable to the source, or rollback silently loses data. A reverse sync job, staged and tested, is the cheapest insurance here.
- **Decommission last.** Deleting the source is a separate, scheduled change after verification signs off. It is never part of the cutover change.

The archive migration that nobody noticed is the one where the source stayed alive for two weeks longer than it needed to. That is the trade worth making.

**Migration runbook at a glance**

| **Stage** | **What it produces** | **Go or no-go check** |
| --- | --- | --- |
| Inventory | Object count, size distribution, prefix map, version and tag state | Distribution classified as bandwidth-bound or request-bound |
| Pilot | Throughput in GB/h and objects/h, error profile, metadata result | Extrapolated window fits the agreed change calendar |
| Bulk transfer | Copied objects, transfer log, retry and error series | Retry rate stable, no unexplained error class |
| Verification | Checksum report or signed manifest, mismatch list | Mismatches at zero, or inside an agreed sampled tolerance |
| Cutover | Read path moved, then write path moved, final delta run | Delta per run stable and small before the write flip |
| Rollback window | Source retained, reverse sync tested, abort thresholds set | Every threshold has a named owner and a value |
| Decommission | Source deleted, cost reconciled | Verification signed off and the retention date passed |

---

**FAQs**

**How long does it take to migrate 100 TB to S3-compatible storage?**

It depends on object count more than volume. Measure a pilot, then extrapolate on the slower of your two rates, bytes per hour or objects per hour. Add time for retries, a verification pass, and a delta sync loop that runs until the per-run delta is stable. A defensible estimate comes from your own pilot, not from a vendor average.

**How do I verify data integrity after an S3 migration?**

Compare checksums, not counts. Use rclone check --checksum where both ends supply hashes, request a stored checksum algorithm such as SHA-256 at upload time, or build an independent manifest hashed at the source and re-hashed at the destination. Do not compare ETags across providers, because multipart ETags depend on the chunk size used at upload.

**What chunk size should I use for multipart uploads?**

Work backwards from your largest object. Ten thousand parts multiplied by the chunk size is your ceiling, so 5 MiB caps you near 48 GiB and 128 MiB raises that past 1 TiB. Then check memory: transfers multiplied by upload concurrency multiplied by chunk size is roughly the RAM the transfer host needs.

**Can I roll back an S3-compatible storage migration after cutover?**

Yes, if you planned for it. Keep the source bucket intact through a defined retention window, keep the endpoint in configuration rather than code, and run a tested reverse sync so writes made after cutover can be replayed to the source. Without that reverse path, rollback loses whatever was written since the flip.

**How do I migrate data to S3-compatible storage without downtime?**

Move read traffic before write traffic. Finish the bulk copy while the source stays authoritative, run a delta sync loop until the delta is predictable, point reads at the new endpoint, then freeze writes briefly or dual-write for the final sync. Each step reverts independently, so no single step needs a maintenance outage.

---

**Plan the execution, not just the destination**

The hard part of a large archive migration is not choosing storage. It is the inventory nobody wanted to run, the verification pass nobody budgeted for, and the rollback option nobody kept open. Every stage above exists because skipping it shows up later as an incident rather than a delay.

If you are scoping a move now, start with the inventory and a pilot on your worst prefix. That alone will tell you whether this is a two-week job or a two-month one. When the archive is large enough to need rehearsed cutover windows and a managed delta loop, [<u>ZATA data migration services</u>](https://zata.ai/solutions/data-migration-services) run the sequence end to end, including the parts that are easy to leave until last.

\
