To secure critical backup remotely, we can use S3 bucket. Here is a bash script to sync a directory to/from a S3 bucket.
- We should avoid uploading the same files to S3, since it wastes your money and takes longer.
- If too many files to sync, we’d better launch multiple parallel tasks of S3.
- Two tips to lower your cost of S3 for archiving. Try S3 RRS bucket, if possible; Enable S3 lifecycle management with Glacier.
Original URL: https://dennyzhang.com/sync_s3_directory