SlideShare a Scribd company logo
LinuxDady.Com
Install s3cmd in Linux
For more information visit
https://linuxdady.com
S3cmd is a command-line tool for uploading, retrieving, and managing data into you s3
bucket. In this tutorial we will discuss how to install s3cmd in Linux. The main purpose of
Using s3cmd is we can automate our backup task by making scripts. If you want to mount
your s3 bucket with your local instance read our tutorial how to mount S3 bucket with ec2
instance.
The following step will help you to install S3cmd in Linux. Let’s do it.
Step 1. Install s3cmd into Linux
S3cmd package is by default available into Ubuntu repository first update repository then
you can simply install the package by executing following command.
Apt-get clean
Apt-get update
We will install s3cmd with pip so install pip first
apt-get install python-pip
pip install --upgrade setuptools
when you will run above command it will ask for pip upgradation.
pip install --upgrade pip
mkdir /s3cmd
cd /s3cmd
Downloadthe package of s3cmd thenunzip
wget https://codeload.github.com/s3tools/s3cmd/zip/master
If unzipis notinstalledfirst install that
apt install unzip
unzip master
cd s3cmd-master
whenyouwill unzipthe s3cmdpackage youwill findthere executingscriptjustrunthat scriptyour
s3cmd will install.
pythonsetup.pyinstall
If you wantto check that s3cms installedornotyoucan check it’sversion.
We have successfullyinstalleds3cmd.Butour taskis notcompletedyetbecause ours3cmd
configurationispending.Rememberonthingit’sdependsonyourrequirementyouwantto
configure s3cmdfromroot useryou can do or from anotheruserlike myrequirementis from
linuxdadyusersoIam doingfromthisuseryou can do accordingly.
adduser linuxdady
passwd linuxdady
su - linuxdady
Afteraddinguserlet’sconfigure s3cmd
If you wantto configure s3cmdyou needyouraccesskeyand secretkeydownloadfromawsconsole
first.
s3cmd configure
Enter youraccess keyandleave restdefaultjusthitenter.
Nowwe have completelyconfiguredours3cmdlet’s use s3cmd
s3cmd ls
thiscommandwill showyourall presentbucketinyours3.
If you wantto create newbucketwiths3cmdyoucan do thatbut rememberonthingsyoubucket
name shouldbe unique.
s3cmd mb s3://linux-certified
Our newbucketlinux-certifiedhasbeencreatednow checkyourawsconsole forverification.
Upload file intoourbucket
We have a testing.txtfile thatwe wanttouploadintoour Linux-certifiedbucket.
s3cmd put testing.txt s3://linux-certified
upload: 'testing.txt' -> 's3://linux-certified/testing.txt'[1 of
1] 24 of 24 100% in 0s 52.83 B/s done
Uploadcomplete directoryintoourbucket.
Rememberone thingdon’tuse /afteryourdirectoryname because itwill uploadonlyyourdirectory
content.
s3cmd put -r LogFile s3://linux-certified
upload: 'LogFile/a' -> 's3://linux-certified/LogFile/a' [1 of 8]
24 of 24 100% in 0s 54.75 B/s done
upload: 'LogFile/a' -> 's3://linux-certified/LogFile/a' [1 of 8]
24 of 24 100% in 0s 308.75 B/s done
List yourbucketdata
s3cmd ls s3://linux-certified
DIR s3://linux-certified/LogFile/
2019-04-16 00:49 24 s3://linux-certified/testing.txt
The above out put showsthatwe have on directoryLogFile inourbucketandone testing.txtfile.You
can cross verifyfromaws S3 console.
Downloadyourfile anddirectoryfrombucket.
s3cmd get s3://linux-certified/testing.txt
s3cmd get -r s3://linux-certified/LogFile
s3cmd del s3://linux-certified/testing.txt
delete: 's3://linux-certified/testing.txt'
s3cmd del -r s3://linux-certified/LogFile
delete: 's3://linux-certified/LogFile/a'
delete: 's3://linux-certified/LogFile/b'
Remove yourbucketpermanently
Note downone thingIf you wantto delete yourbucketcompletelythenyourbucketshouldbe
emptyotherwise itwill notdelete yourbucketandwill prompterror“yourbucketisnot empty”.
s3cmd rb s3://linux-certified
Bucket 's3://linux-certified/' removed
Sync data betweenlocal directoryandyours3 bucket
Let’ssuppose Ihave LogFile directoryintomyS3 bucket andsync thisdirectorywith/tmp/data
directorythenfollowgivenstep
s3cmd sync s3://linux-certified/LogFile /tmp/data
download: 's3://linux-certified/LogFile/a' -> '/tmp/data/LogFile/a'[1
of 5] 24 of 24 100% in 0s 2.34 KB/s done
download: 's3://linux-certified/LogFile/e' -> '/tmp/data/LogFile/e' [2
of 5] 0 of 0 0% in 0s 0.00 B/s done
Copydata from one buckettoanotherbucket
s3cmd sync s3://linux-certified/ s3://linuxdady/
Conclusion
In thistutorial we have install s3cmdand explainedoverview of S3cmd.Youcan performall s3
buckettaskwiththe helpof s3cmd andyou can automate yourtask like backup,bucketcreation,
bucketdeletion,dataupload,datadownload,datacopyformsone bucketto anotheretc.etc. with
the helpof s3cmd and youcan save yourvaluable time.

More Related Content

What's hot (19)

Why we are migrating to Slackware
Why we are migrating to SlackwareWhy we are migrating to Slackware
Why we are migrating to Slackware
Marian Marinov
 
Scalable QA With Docker
Scalable QA With DockerScalable QA With Docker
Scalable QA With Docker
Maarten van den Ende
 
Aegir presentation
Aegir presentationAegir presentation
Aegir presentation
Mindtrades
 
Docker orchestration with Tutum
Docker orchestration with TutumDocker orchestration with Tutum
Docker orchestration with Tutum
Stephen Hoogendijk
 
Retrofit caching V1.9.0 - Android OkClient
Retrofit caching V1.9.0 - Android OkClientRetrofit caching V1.9.0 - Android OkClient
Retrofit caching V1.9.0 - Android OkClient
Mathan Raj
 
Scapy talk
Scapy talkScapy talk
Scapy talk
Ashwin Patil, GCIH, GCIA, GCFE
 
Deploy node.js app with capistrano
Deploy node.js app with capistranoDeploy node.js app with capistrano
Deploy node.js app with capistrano
Gergely Németh
 
Expert Day 2019 - Introduction
Expert Day 2019 - IntroductionExpert Day 2019 - Introduction
Expert Day 2019 - Introduction
SUSE
 
Zfs replication overview
Zfs replication overviewZfs replication overview
Zfs replication overview
鵬 大
 
A Peek Under the Aura Hood
A Peek Under the Aura HoodA Peek Under the Aura Hood
A Peek Under the Aura Hood
Neo4j
 
HTCondor flocking between two clouds
HTCondor flocking between two cloudsHTCondor flocking between two clouds
HTCondor flocking between two clouds
Guy Tel-Zur
 
Asterisk as a Virtual Network Function Part 1
Asterisk as a Virtual Network Function Part 1Asterisk as a Virtual Network Function Part 1
Asterisk as a Virtual Network Function Part 1
Leif Madsen
 
My early experience with Mirantis OpenStack 6.0
My early experience with Mirantis OpenStack 6.0My early experience with Mirantis OpenStack 6.0
My early experience with Mirantis OpenStack 6.0
Guy Tel-Zur
 
Unified deployments using aws systems manager
Unified deployments using aws systems managerUnified deployments using aws systems manager
Unified deployments using aws systems manager
VijayaNirmalaGopal
 
Writing Serverless Application in Java with comparison of 3 approaches: AWS S...
Writing Serverless Application in Java with comparison of 3 approaches: AWS S...Writing Serverless Application in Java with comparison of 3 approaches: AWS S...
Writing Serverless Application in Java with comparison of 3 approaches: AWS S...
Andrew Zakordonets
 
20211120 Automating EC2 operations / EC2運用の自動化
20211120 Automating EC2 operations / EC2運用の自動化20211120 Automating EC2 operations / EC2運用の自動化
20211120 Automating EC2 operations / EC2運用の自動化
Masaru Ogura
 
Puppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax Media
Puppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax MediaPuppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax Media
Puppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax Media
Puppet
 
Pipeline+over view
Pipeline+over viewPipeline+over view
Pipeline+over view
Srinivas Kannan
 
Who Broke My Crypto
Who Broke My CryptoWho Broke My Crypto
Who Broke My Crypto
John Varghese
 
Why we are migrating to Slackware
Why we are migrating to SlackwareWhy we are migrating to Slackware
Why we are migrating to Slackware
Marian Marinov
 
Aegir presentation
Aegir presentationAegir presentation
Aegir presentation
Mindtrades
 
Docker orchestration with Tutum
Docker orchestration with TutumDocker orchestration with Tutum
Docker orchestration with Tutum
Stephen Hoogendijk
 
Retrofit caching V1.9.0 - Android OkClient
Retrofit caching V1.9.0 - Android OkClientRetrofit caching V1.9.0 - Android OkClient
Retrofit caching V1.9.0 - Android OkClient
Mathan Raj
 
Deploy node.js app with capistrano
Deploy node.js app with capistranoDeploy node.js app with capistrano
Deploy node.js app with capistrano
Gergely Németh
 
Expert Day 2019 - Introduction
Expert Day 2019 - IntroductionExpert Day 2019 - Introduction
Expert Day 2019 - Introduction
SUSE
 
Zfs replication overview
Zfs replication overviewZfs replication overview
Zfs replication overview
鵬 大
 
A Peek Under the Aura Hood
A Peek Under the Aura HoodA Peek Under the Aura Hood
A Peek Under the Aura Hood
Neo4j
 
HTCondor flocking between two clouds
HTCondor flocking between two cloudsHTCondor flocking between two clouds
HTCondor flocking between two clouds
Guy Tel-Zur
 
Asterisk as a Virtual Network Function Part 1
Asterisk as a Virtual Network Function Part 1Asterisk as a Virtual Network Function Part 1
Asterisk as a Virtual Network Function Part 1
Leif Madsen
 
My early experience with Mirantis OpenStack 6.0
My early experience with Mirantis OpenStack 6.0My early experience with Mirantis OpenStack 6.0
My early experience with Mirantis OpenStack 6.0
Guy Tel-Zur
 
Unified deployments using aws systems manager
Unified deployments using aws systems managerUnified deployments using aws systems manager
Unified deployments using aws systems manager
VijayaNirmalaGopal
 
Writing Serverless Application in Java with comparison of 3 approaches: AWS S...
Writing Serverless Application in Java with comparison of 3 approaches: AWS S...Writing Serverless Application in Java with comparison of 3 approaches: AWS S...
Writing Serverless Application in Java with comparison of 3 approaches: AWS S...
Andrew Zakordonets
 
20211120 Automating EC2 operations / EC2運用の自動化
20211120 Automating EC2 operations / EC2運用の自動化20211120 Automating EC2 operations / EC2運用の自動化
20211120 Automating EC2 operations / EC2運用の自動化
Masaru Ogura
 
Puppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax Media
Puppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax MediaPuppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax Media
Puppet Camp Sydney 2015: Sneak peek into the Puppet environment at Fairfax Media
Puppet
 

Recently uploaded (20)

Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
National Information Standards Organization (NISO)
 
Hemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptxHemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptx
Arshad Shaikh
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Rose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdfRose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdf
kushallamichhame
 
EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025
EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025
EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025
Quiz Club of PSG College of Arts & Science
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18
Celine George
 
Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.
jmansha170
 
Respiratory System , Urinary System
Respiratory  System , Urinary SystemRespiratory  System , Urinary System
Respiratory System , Urinary System
RushiMandali
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti MpdBasic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptxUnit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
How to Manage Upselling of Subscriptions in Odoo 18
How to Manage Upselling of Subscriptions in Odoo 18How to Manage Upselling of Subscriptions in Odoo 18
How to Manage Upselling of Subscriptions in Odoo 18
Celine George
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
Ray Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big CycleRay Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big Cycle
Dadang Solihin
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdfBlack and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdfAllomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptxWhat is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
Hemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptxHemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptx
Arshad Shaikh
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Rose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdfRose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdf
kushallamichhame
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18
Celine George
 
Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.
jmansha170
 
Respiratory System , Urinary System
Respiratory  System , Urinary SystemRespiratory  System , Urinary System
Respiratory System , Urinary System
RushiMandali
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti MpdBasic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptxUnit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
How to Manage Upselling of Subscriptions in Odoo 18
How to Manage Upselling of Subscriptions in Odoo 18How to Manage Upselling of Subscriptions in Odoo 18
How to Manage Upselling of Subscriptions in Odoo 18
Celine George
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
Ray Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big CycleRay Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big Cycle
Dadang Solihin
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdfBlack and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdfAllomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptxWhat is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
Ad

install s3cmd in Linux

  • 1. LinuxDady.Com Install s3cmd in Linux For more information visit https://linuxdady.com
  • 2. S3cmd is a command-line tool for uploading, retrieving, and managing data into you s3 bucket. In this tutorial we will discuss how to install s3cmd in Linux. The main purpose of Using s3cmd is we can automate our backup task by making scripts. If you want to mount your s3 bucket with your local instance read our tutorial how to mount S3 bucket with ec2 instance. The following step will help you to install S3cmd in Linux. Let’s do it. Step 1. Install s3cmd into Linux S3cmd package is by default available into Ubuntu repository first update repository then you can simply install the package by executing following command. Apt-get clean Apt-get update We will install s3cmd with pip so install pip first apt-get install python-pip pip install --upgrade setuptools when you will run above command it will ask for pip upgradation. pip install --upgrade pip
  • 3. mkdir /s3cmd cd /s3cmd Downloadthe package of s3cmd thenunzip wget https://codeload.github.com/s3tools/s3cmd/zip/master If unzipis notinstalledfirst install that apt install unzip unzip master cd s3cmd-master whenyouwill unzipthe s3cmdpackage youwill findthere executingscriptjustrunthat scriptyour s3cmd will install. pythonsetup.pyinstall If you wantto check that s3cms installedornotyoucan check it’sversion.
  • 4. We have successfullyinstalleds3cmd.Butour taskis notcompletedyetbecause ours3cmd configurationispending.Rememberonthingit’sdependsonyourrequirementyouwantto configure s3cmdfromroot useryou can do or from anotheruserlike myrequirementis from linuxdadyusersoIam doingfromthisuseryou can do accordingly. adduser linuxdady passwd linuxdady su - linuxdady Afteraddinguserlet’sconfigure s3cmd If you wantto configure s3cmdyou needyouraccesskeyand secretkeydownloadfromawsconsole first. s3cmd configure Enter youraccess keyandleave restdefaultjusthitenter. Nowwe have completelyconfiguredours3cmdlet’s use s3cmd s3cmd ls thiscommandwill showyourall presentbucketinyours3. If you wantto create newbucketwiths3cmdyoucan do thatbut rememberonthingsyoubucket name shouldbe unique. s3cmd mb s3://linux-certified Our newbucketlinux-certifiedhasbeencreatednow checkyourawsconsole forverification.
  • 5. Upload file intoourbucket We have a testing.txtfile thatwe wanttouploadintoour Linux-certifiedbucket. s3cmd put testing.txt s3://linux-certified upload: 'testing.txt' -> 's3://linux-certified/testing.txt'[1 of 1] 24 of 24 100% in 0s 52.83 B/s done Uploadcomplete directoryintoourbucket. Rememberone thingdon’tuse /afteryourdirectoryname because itwill uploadonlyyourdirectory content. s3cmd put -r LogFile s3://linux-certified upload: 'LogFile/a' -> 's3://linux-certified/LogFile/a' [1 of 8] 24 of 24 100% in 0s 54.75 B/s done upload: 'LogFile/a' -> 's3://linux-certified/LogFile/a' [1 of 8] 24 of 24 100% in 0s 308.75 B/s done List yourbucketdata s3cmd ls s3://linux-certified DIR s3://linux-certified/LogFile/ 2019-04-16 00:49 24 s3://linux-certified/testing.txt The above out put showsthatwe have on directoryLogFile inourbucketandone testing.txtfile.You can cross verifyfromaws S3 console. Downloadyourfile anddirectoryfrombucket. s3cmd get s3://linux-certified/testing.txt s3cmd get -r s3://linux-certified/LogFile
  • 6. s3cmd del s3://linux-certified/testing.txt delete: 's3://linux-certified/testing.txt' s3cmd del -r s3://linux-certified/LogFile delete: 's3://linux-certified/LogFile/a' delete: 's3://linux-certified/LogFile/b' Remove yourbucketpermanently Note downone thingIf you wantto delete yourbucketcompletelythenyourbucketshouldbe emptyotherwise itwill notdelete yourbucketandwill prompterror“yourbucketisnot empty”. s3cmd rb s3://linux-certified Bucket 's3://linux-certified/' removed Sync data betweenlocal directoryandyours3 bucket Let’ssuppose Ihave LogFile directoryintomyS3 bucket andsync thisdirectorywith/tmp/data directorythenfollowgivenstep s3cmd sync s3://linux-certified/LogFile /tmp/data download: 's3://linux-certified/LogFile/a' -> '/tmp/data/LogFile/a'[1 of 5] 24 of 24 100% in 0s 2.34 KB/s done download: 's3://linux-certified/LogFile/e' -> '/tmp/data/LogFile/e' [2 of 5] 0 of 0 0% in 0s 0.00 B/s done Copydata from one buckettoanotherbucket s3cmd sync s3://linux-certified/ s3://linuxdady/
  • 7. Conclusion In thistutorial we have install s3cmdand explainedoverview of S3cmd.Youcan performall s3 buckettaskwiththe helpof s3cmd andyou can automate yourtask like backup,bucketcreation, bucketdeletion,dataupload,datadownload,datacopyformsone bucketto anotheretc.etc. with the helpof s3cmd and youcan save yourvaluable time.