Reputation: 51
I have S3 bucket repository of size around 45 GB & want to clone on local system, So i run command "aws s3 sync s3://***** D:**** --delete". when i returned the command line is closed, So i want to check that S3 bucket & my local repository is in synced or not.
Upvotes: 3
Views: 679
Reputation: 18270
You can compare the result of sizes between your bucket and the local destination assuming you didn't use --exclude
in your sync.
To calculate the size of bucket,
aws s3 ls bucketname --recursive --summarize --human-readable | grep 'Total Size:'
Similarly you can use linux du
command to get the local directory size.
Note: It is easier to get the S3 bucket or object sizes with s3cmd
.
Upvotes: 1