SlideShare uma empresa Scribd logo
1 de 25
JOHN MART IN (@TEKBUDDHA) 
THE SECRET INGREDIENT 
OF AUTOMAT ION
Go away or I will replace you with a very 
small shell script. 
- SYSADMIN ADAGE
#!/bin/bash 
#Backup script for www and mysql. 
DATE=`date +%-Y%-m%-d` 
backup_path="/path/to/where/iwant/mybackup/stored/" 
backup_source="/path/of/myfolder/iwant/to/backup/" 
user="db_username" 
password="db_password" 
host="db_host" 
db_name="db_name" 
# The function to actually do the backup. 
function dobackup { 
echo "Starting backup for" $user 
echo "Backing up" $backup_source 
tar -cvzPf $backup_path$DATE-$user.tar.gz $backup_source 
echo "Backing up MySQL database.." 
mysqldump --user=$user --password=$password --host=$host 
$db_name > $backup_path/$db_name-$date.sql 
gzip $backup_path/$db_name-$date.sql 
Source: http://bash.cyberciti.biz/backup/backup-mysql-database-server-2/
backup_model :my_db do 
description "Back up my database" 
definition <<-DEF 
split_into_chunks_of 4000 
database MySQL do |db| 
db.name = 'mydb' 
db.username = 'myuser' 
db.password = ‘#{node['mydb']['password']}' 
end 
compress_with Gzip 
store_with S3 do |s3| 
s3.access_key_id = '#{node['aws']['access_key_id']}' 
s3.secret_key = '#{node['aws']['secret_access_key']}' 
s3.bucket = 'mybucket' 
end 
DEF 
Source: https://github.com/cramerdev/backup-cookbook
AUTOMATE 
AND GO BACK TO SLEEP
AUTOMATE 
AND LAUNCH I T YOURSEL F
AUTOMATE 
TO SCALE YOUR BUSINESS
Read Rands in Repose! Source: http://violasong.com/portfolio/
WHAT IS 
THE SECRET NECESSARY 
INGREDIENT ?
PEOPLE
Organizations which design systems ... are 
constrained to produce designs which are 
copies of the communication structures of 
these organizations. 
-MELVIN CONWAY 
Source: http://bit.ly/1ujIDLK
Automation, done wrong, mechanizes humans. 
Automation, done wrong, misdirects. 
Automation, done wrong, entraps. 
- BRIAN TROUTWINE 
Source: http://bit.ly/1umOm46
Source: http://bit.ly/1uDadiv 
EMPATHY
The true essence of DevOps is empathy. 
Empathy allows software makers and 
operators to help each other deliver the best 
possible functionality+operability on behalf of 
their customers. 
- JEF F SUSSNA 
Source: http://bit.ly/19p4Yy1
CALMS
CUL TURE 
AUTOMAT ION 
( LEAN) 
MEASURE 
SHARING
“ C U L T I V A T I O N O F T H E S O U L ” 
Source: http://bit.ly/1soOQ8y
“ A T T I T U D E S A N D B E H A V I O R S O F A 
P A R T I C U L A R S O C I A L G R O U P ” 
Source: http://bit.ly/1soOQ8y
THE WAY WE THINK, BEHAVE, 
Source: http://bit.ly/1soOQ8y 
INTERACT
Automation, done right, relieves tedium. 
Automation, done right, reduces errors. 
Automation, done right, liberates. 
- BRIAN TROUTWINE 
Source: http://bit.ly/1umOm46
The goal of automating a system is to 
enhance safety, contentment, knowledge, 
and freedom of both the authors and the 
users of the system. 
- ADAM JACOB
Read Rands in Repose! Source: http://violasong.com/portfolio/
THANK YOU

Mais conteúdo relacionado

Último

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Último (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Destaque

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

The Secret Ingredient of Automation

  • 1. JOHN MART IN (@TEKBUDDHA) THE SECRET INGREDIENT OF AUTOMAT ION
  • 2. Go away or I will replace you with a very small shell script. - SYSADMIN ADAGE
  • 3. #!/bin/bash #Backup script for www and mysql. DATE=`date +%-Y%-m%-d` backup_path="/path/to/where/iwant/mybackup/stored/" backup_source="/path/of/myfolder/iwant/to/backup/" user="db_username" password="db_password" host="db_host" db_name="db_name" # The function to actually do the backup. function dobackup { echo "Starting backup for" $user echo "Backing up" $backup_source tar -cvzPf $backup_path$DATE-$user.tar.gz $backup_source echo "Backing up MySQL database.." mysqldump --user=$user --password=$password --host=$host $db_name > $backup_path/$db_name-$date.sql gzip $backup_path/$db_name-$date.sql Source: http://bash.cyberciti.biz/backup/backup-mysql-database-server-2/
  • 4. backup_model :my_db do description "Back up my database" definition <<-DEF split_into_chunks_of 4000 database MySQL do |db| db.name = 'mydb' db.username = 'myuser' db.password = ‘#{node['mydb']['password']}' end compress_with Gzip store_with S3 do |s3| s3.access_key_id = '#{node['aws']['access_key_id']}' s3.secret_key = '#{node['aws']['secret_access_key']}' s3.bucket = 'mybucket' end DEF Source: https://github.com/cramerdev/backup-cookbook
  • 5. AUTOMATE AND GO BACK TO SLEEP
  • 6. AUTOMATE AND LAUNCH I T YOURSEL F
  • 7. AUTOMATE TO SCALE YOUR BUSINESS
  • 8.
  • 9. Read Rands in Repose! Source: http://violasong.com/portfolio/
  • 10. WHAT IS THE SECRET NECESSARY INGREDIENT ?
  • 12. Organizations which design systems ... are constrained to produce designs which are copies of the communication structures of these organizations. -MELVIN CONWAY Source: http://bit.ly/1ujIDLK
  • 13. Automation, done wrong, mechanizes humans. Automation, done wrong, misdirects. Automation, done wrong, entraps. - BRIAN TROUTWINE Source: http://bit.ly/1umOm46
  • 15. The true essence of DevOps is empathy. Empathy allows software makers and operators to help each other deliver the best possible functionality+operability on behalf of their customers. - JEF F SUSSNA Source: http://bit.ly/19p4Yy1
  • 16. CALMS
  • 17. CUL TURE AUTOMAT ION ( LEAN) MEASURE SHARING
  • 18. “ C U L T I V A T I O N O F T H E S O U L ” Source: http://bit.ly/1soOQ8y
  • 19. “ A T T I T U D E S A N D B E H A V I O R S O F A P A R T I C U L A R S O C I A L G R O U P ” Source: http://bit.ly/1soOQ8y
  • 20. THE WAY WE THINK, BEHAVE, Source: http://bit.ly/1soOQ8y INTERACT
  • 21. Automation, done right, relieves tedium. Automation, done right, reduces errors. Automation, done right, liberates. - BRIAN TROUTWINE Source: http://bit.ly/1umOm46
  • 22.
  • 23. The goal of automating a system is to enhance safety, contentment, knowledge, and freedom of both the authors and the users of the system. - ADAM JACOB
  • 24. Read Rands in Repose! Source: http://violasong.com/portfolio/

Notas do Editor

  1. How many people are familiar with this saying? It is now part of the system administrator’s tome alongside “sudo make me a sandwich” and “pimply faced youth”. (BTW, if you don’t know that last one you don’t know your lore. Look it up.) This oldie-but-goodie has been repeated by sysadmins for years. Granted, it’s often delivered with a certain amount of snark, usually targeting someone from accounting or HR. But at its core is systems automation. As SysAdmins, we’ve been doing automation a long time. Another often heard mantra goes something along the lines of “if I have to do it more than once, it’s going into a script”. And if you’re paying close attention, you’ll realize I’ve already told you about the secret ingredient to automating systems.
  2. Consider this example of an old bash script which automates the backup process of a MySQL database. It’s fairly straightforward in how it gets the job done. More or less, it follows the steps similar to those a DBA or SysAdmin would take if they were to make a manual backup. The creation of this script meant a DBA or SysAdmin no longer had to manually execute the steps necessary to create a backup of their database. No more middle-of-the-night manual executions or taking the database down in the middle of the day interrupting users. This could be scheduled to run and became a trusted tool. Now, instead of spending time thinking about backup itself, the DBAs and SysAdmins could turn their attention to other parts of the system that required their attention. In this particular example, they may want to be spending time thinking about the inclusion of a user password in their backup script and whether that’s a good idea or not. (Hint: it’s not a good idea.)
  3. As the number of servers we’ve been asked to build and maintain has increased with time, our tools have advanced. We rely on tools such as Chef, Puppet, or CFengine to help us scale beyond those bash scripts that use to be so helpful to us. Here’s a view of that same backup process, this time in the form of a Chef recipe. And while the tools have changed, the goals are roughly the same, are they not? Still automated. Still giving DBAs and SysAdmins more time to think about other problems in need of being solved.
  4. I’m thinking about the SysAdmin who can’t keep their eyes open at 3AM restarting failed applications that could just as easily be restarted by a monitoring service.
  5. I’m thinking about the developer who needs to get that app out the door in three days and doesn’t care about the server it runs on.
  6. I think about people trying to assemble the other parts of their business who don’t have time to think about their infrastructure.
  7. I think about the customers who only wants to complete their purchase instead of waiting for the page to load because servers aren’t scaling effectively.
  8. I think about the customers who only wants to complete their purchase instead of waiting for the page to load because servers aren’t scaling effectively.
  9. When we talk about system automation, we should be thinking about the people we’re automating to help. The sysadmin, the DBA, the developer, the business owner, each of their (and our own) customers. We aren’t automating for the sake of automating; we’re doing it to help solve problems for people. We must empathize if we are to help.
  10. If you haven’t zeroed in on it just yet… The secret ingredient to systems automation - much like Soylent Green - is people. When I talk about systems automation, the benefits it brings, I’m thinking about people.
  11. Empathy is a core theme of the DevOps movement.
  12. When we talk about system automation, we should be thinking about the people we’re automating to help. The sysadmin, the DBA, the developer, the business owner, each of their (and our own) customers. We aren’t automating for the sake of automating; we’re doing it to help solve problems for people. We must empathize if we are to help.