Skip to content

AWS Local to S3 Recursive FIle Sync - Uploads changed files only

Notifications You must be signed in to change notification settings

shariqmus/s3-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A script to sync local files to s3. It compares the file using md5 hash.

Run it via the command:

python3 py-sync.py [SOURCE_DIRECTORY] [DESTINATION_BUCKET_NAME]

Note:

  • python3 and boto3 should be installed
  • aws credentials set on the system
  • the script uses the default aws profile

Note:

  • It syncs the files from the source directory recursively to S3 bucket
  • It uses md5 to check if file contents have changed, and use this to decide if upload is required
  • File-Status: No-Change=file was not changed, New=new, Modified=changed file
  • Action: Skipping(Not uploading), Uploading(uploading the file)

About

AWS Local to S3 Recursive FIle Sync - Uploads changed files only

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published