- copy
go.modandgo.sumfiles from the offline PC to the internet PC
Find the original here article here: Devops Best Practices
DevOps started out as "Agile Systems Administration". In 2008, at the Agile Conference in Toronto, Andrew Shafer posted an offer to moderate an ad hoc "Birds of a Feather" meeting to discuss the topic of "Agile Infrastructure". Only one person showed up to discuss the topic: Patrick Debois. Their discussions and sharing of ideas with others advanced the concept of "agile systems administration". In that same year, Debois and Shafer formed an Agile Systems Administrator group on Google, with limited success. Patrick Debois did a presentation called "Infrastructure and Operations" addressing issues around involving more of the comp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # YugabyteDB build steps from: | |
| # https://docs.yugabyte.com/latest/contribute/core-database/build-from-src-centos/ | |
| # | |
| FROM centos:7.9.2009 | |
| ARG GCC_VERSION=7.3.0 | |
| ARG YB_VERSION=2.7.1.1 | |
| ARG MAKE_GCC_PARALLELISM=16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| watchtower: | |
| image: containrrr/watchtower | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /root/.docker/config.json:/config.json | |
| command: nginx-proxy nginx-proxy-le |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Back up From the Command Line (using mysqldump) | |
| #If you have shell or telnet access to your web server, you can backup your MySQL data by using the mysqldump command. | |
| #This command connects to the MySQL server and creates an SQL dump file. | |
| #The dump file contains the SQL statements necessary to re-create the database. Here is the proper syntax: | |
| mysqldump --opt -u [uname] -p[pass] [dbname] > [backupfile.sql] | |
| #For example, to backup a database named 'Tutorials' with the username 'root' and with no password to a file tut_backup.sql, | |
| #you should accomplish this command | |
| mysqldump -u root -p Tutorials > tut_backup.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| mariabackup --stream=xbstream --backup --user root|pigz >mariadb-backup.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash -x | |
| # OSX: execute as user | |
| # Linux: execute as root | |
| MY_DIR=$(cd $(dirname ${BASH_SOURCE[0]});pwd) | |
| cd $MY_DIR | |
| MARIABACKUP=$(which mariabackup) |