Home / Companies / Spacelift / Blog / Post Details
Content Deep Dive

AWS S3 Sync Command – Guide with Examples

Blog post from Spacelift

Post Details
Company
Date Published
Author
James Walker
Word Count
1,900
Language
English
Hacker News Points
-
Summary

Amazon S3 is a powerful object storage platform that can be used to store and synchronize data with local directories using the AWS CLI s3 sync command. The command allows for recursive copying of files and subdirectories, while ignoring empty directories by default. It offers several options to customize copy behavior, including excluding or including specific file paths, performing a dry run before transferring files, and setting ACLs, server-side encryption, and storage classes for synced files. S3 sync is useful in various scenarios such as backups, seeding new buckets with initial content, and creating local copies of existing buckets. It can also be used to synchronize two existing S3 buckets, making it a valuable tool for managing data in AWS.