Skip to content

Commit b082ab2

Browse files
author
Default User
committed
draft and tested mysqldump and restore
1 parent fc6ef3f commit b082ab2

File tree

18 files changed

+292
-0
lines changed

18 files changed

+292
-0
lines changed

README.md

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
2+
3+
4+
5+
[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://doc.servertribe.com)
6+
[![Discord](https://img.shields.io/discord/844971127703994369)](http://discord.servertribe.com)
7+
[![Docs](https://img.shields.io/badge/videos-watch-brightgreen.svg)](https://www.youtube.com/@servertribe)
8+
[![Generic badge](https://img.shields.io/badge/download-latest-brightgreen.svg)](https://www.servertribe.com/community-edition/)
9+
10+
# MySQL Backup and Recovery
11+
12+
13+
14+
15+
16+
17+
# Attune
18+
19+
[Attune](https://www.servertribe.com/)
20+
automates and orchestrates processes to streamline deployments, scaling,
21+
migrations, and management of your systems. The Attune platform is building a
22+
community of sharable automated and orchestrated processes.
23+
24+
You can leverage the publicly available orchestrated blueprints to increase
25+
your productivity, and accelerate the delivery of your projects. You can
26+
open-source your own work and improve existing community orchestrated projects.
27+
28+
## Get Started with Attune, Download NOW!
29+
30+
The **Attune Community Edition** can be
31+
[downloaded](https://www.servertribe.com/comunity-edition/)
32+
for free from our
33+
[ServerTribe website](https://www.servertribe.com/comunity-edition/).
34+
You can learn more about Attune through
35+
[ServerTribe's YouTube Channel](https://www.youtube.com/@servertribe).
36+
37+
38+
39+
40+
41+
42+
43+
# Clone this Project
44+
45+
Clone this project into your own instance of Attune.
46+
47+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-clone-new-project-01.png" alt="clone a new project"/>
48+
49+
---
50+
51+
Paste the GIT repository URL into Attune and Select Clone.
52+
53+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-clone-new-project-02.png" alt="clone a new project"/>
54+
55+
---
56+
57+
**Now that this project is in your Attune instance you can begin creating
58+
Jobs.**
59+
60+
Navigate to the Plan workspace and create a Job from a Blueprint in the
61+
Project you cloned.
62+
63+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-plan-new-job-11.png" alt="plan a new job"/>
64+
65+
---
66+
67+
Configure the Parameters for the Job you created. Create the Values you're
68+
missing in the next step.
69+
70+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-plan-new-job-12.png" alt="plan a new job"/>
71+
72+
---
73+
74+
Create the Values required to fill the Parameters for the Job.
75+
76+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-plan-new-job-13-1.png" alt="plan a new job"/>
77+
78+
---
79+
80+
Run your Job.
81+
82+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-run-job-01.png" alt="run your job"/>
83+
84+
---
85+
86+
**Congratulations, you’ve run a cloned project.**
87+
88+
If you need further assistance, please explore our help.
89+
90+
<img width=200 src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-get-help-01.png" alt="get help"/>
91+
92+
93+
94+
95+
## Blueprints
96+
97+
This Project contains the following Blueprints.
98+
99+
100+
101+
### Backup Single Database with mysqldump
102+
103+
104+
### Restore Database with mysqldump
105+
106+
107+
108+
109+
110+
## Parameters
111+
112+
113+
| Name | Type | Script Reference | Comment |
114+
| ---- | ---- | ---------------- | ------- |
115+
| MySQL Node | Linux/Unix Node | `mysqlnode` | None |
116+
| Database | Text | `database` | None |
117+
| root User | Linux/Unix Credential | `rootuser` | None |
118+
| Backup Directory | Text | `backupdirectory` | None |
119+
| MySQL Backup Node | Linux/Unix Node | `mysqlbackupnode` | None |
120+
121+
122+
123+
124+
## Files
125+
126+
127+
| Name | Type | Comment |
128+
| ---- | ---- | ------- |
129+
130+
131+
132+
133+
134+
135+
# Contribute to this Project
136+
137+
**The collective power of a community of talented individuals working in
138+
concert delivers not only more ideas, but quicker development and
139+
troubleshooting when issues arise.**
140+
141+
If you’d like to contribute and help improve these projects, please fork our
142+
repository, commit your changes in Attune, push you changes, and create a
143+
pull request.
144+
145+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-pull-request-01.png" alt="pull request"/>
146+
147+
---
148+
149+
Please feel free to raise any issues or questions you have.
150+
151+
<img src="https://www.servertribe.com/wp-content/uploads/2023/02/Attune-get-help-02.png" alt="create an issue"/>
152+
153+
154+
---
155+
156+
**Thank you**
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "backupdirectory",
3+
"name": "Backup Directory",
4+
"showInPlan": true,
5+
"type": "c.s.s.b.phv.Text"
6+
}

parameters/database/metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "database",
3+
"name": "Database",
4+
"showInPlan": true,
5+
"type": "c.s.s.b.phv.Text"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "mysqlbackupnode",
3+
"name": "MySQL Backup Node",
4+
"showInPlan": true,
5+
"type": "c.s.s.b.phv.LinuxServer"
6+
}

parameters/mysqlnode/metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "mysqlnode",
3+
"name": "MySQL Node",
4+
"showInPlan": true,
5+
"type": "c.s.s.b.phv.LinuxServer"
6+
}

parameters/rootuser/metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "rootuser",
3+
"name": "root User",
4+
"showInPlan": true,
5+
"type": "c.s.s.b.phv.LinOsCred"
6+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"concurrency": 1,
3+
"enabled": true,
4+
"isBlueprint": true,
5+
"key": "backupsingledatabasewithmysqldump",
6+
"links": [
7+
{
8+
"order": 0,
9+
"stepKey": "closeandlockalltablesineverydatabase"
10+
},
11+
{
12+
"order": 50,
13+
"stepKey": "dumpmysqldatabase"
14+
},
15+
{
16+
"order": 100,
17+
"stepKey": "unlocktables"
18+
},
19+
{
20+
"order": 150,
21+
"stepKey": "transfermysqlbackuptonode"
22+
}
23+
],
24+
"name": "Backup Single Database with mysqldump",
25+
"type": "com.servertribe.attune.tuples.StepGroupTuple"
26+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"enabled": true,
3+
"interpreter": 1,
4+
"key": "closeandlockalltablesineverydatabase",
5+
"name": "Close and Lock all Tables in Every Database",
6+
"osCredKey": "rootuser",
7+
"serverKey": "mysqlnode",
8+
"successExitCode": 0,
9+
"type": "com.servertribe.attune.tuples.StepSshTuple"
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mysql -v -e "FLUSH TABLES WITH READ LOCK;"

steps/dumpmysqldatabase/metadata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"enabled": true,
3+
"interpreter": 1,
4+
"key": "dumpmysqldatabase",
5+
"name": "Dump MySQL Database",
6+
"osCredKey": "rootuser",
7+
"serverKey": "mysqlnode",
8+
"successExitCode": 0,
9+
"type": "com.servertribe.attune.tuples.StepSshTuple"
10+
}

0 commit comments

Comments
 (0)