forked from AlabamaWaterInstitute/CloudInfra
-
Notifications
You must be signed in to change notification settings - Fork 19
Creating tar.gz file
Arpita Patel edited this page May 8, 2024
·
3 revisions
When creating and uploading tar.gz file to S3 bucket, follow the instruction here.
- Creating tar.gz file is performed on linux machine, and use aws cli to upload the file to S3 bucket.
- Command to create tar.gz file
tar -czvf AWI_16_2853886_005.tar.gz AWI_16_2853886_005
- Upload to S3 bucket. Replace destination location appropriately.
aws s3 cp AWI_16_2853886_005.tar.gz s3://ciroh-ua-ngen-data/AWI-005/
- Getting tar.gz file from S3 bucket
wget --no-parent https://ciroh-ua-ngen-data.s3.us-east-2.amazonaws.com/AWI-005/AWI_16_2853886_005.tar.gz
- Untar tar.gz file
tar -xf AWI_16_2853886_005.tar.gz