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
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!