September, 2016Archive for

S3cmd – Sync Files Between S3 bucket and Local Directory

1. Syncing Files from Local => S3 Bucket For example I want to sync my local directory /root/mydir/ to S3 bucket directory s3://tecadmin/mydir/ where tecadmin is bucket name. I have created some new files in /root/mydir/ and sync to s3 bucket using following command. Note: Do not forgot to add trailing slash (/) in local directory path when specifying s3 bucket with full directory path. To keep preserve file attributes like date/time etc use -p or –preserve parameter like below ...