Size of all files and folders moved to S3

0

Hello All,

I've a requirement to move 4 TB of data from on-prem shared file system to AWS S3. We can't affort to miss any files during this movement. Now data has been moved to S3 - but my client need a confirmation that all the files are moved from on-prem to S3 successfully - in terms of number of files and total size.

Any points to resolve this would be great help.

Thanks SV

SVen
질문됨 6달 전202회 조회
2개 답변
2

Hi,

To get a summary of the objects within a bucket, run the following command:

aws s3 ls --summarize --human-readable --recursive s3://<bucket-name>/

This should give an output like this:

2021-10-07 21:32:57 452 Bytes foo/bar/car/petrol
2021-10-07 21:32:57 896 Bytes foo/bar/truck/diesel
2021-10-07 21:32:57 189 Bytes foo/bar/hybrid/battery
2021-10-07 21:32:57 398 Bytes vehicles.txt

Total Objects: 4
Total Size: 2.9 MiB

By comparing the number of files and total size from your on-premise file system and S3, you can verify if everything is transferred correctly.

References:
[1] https://aws.amazon.com/blogs/storage/find-out-the-size-of-your-amazon-s3-buckets/
[2] https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html

Thanks,
Atul

profile picture
답변함 6달 전
profile pictureAWS
전문가
검토됨 6달 전
0

Hi,

Agreed with IBAtulAnand's answer for a quick check

A second level could be to compare a list of files by name and size from both sides (local and S3)

But, the most secure is to compute for each file a checksum (like MD5 or more advanced if you prefer) on both local and S3 and check if they are identical for a given file name. This will confirm to your client that files not only have same size individually but also that their content is identical for each individual bit. This very secure procedure will ensure that the transfer utility did not alter any data (while keeping it same size)

Best,

Didier

profile pictureAWS
전문가
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠