Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
9a4444ab
Commit
9a4444ab
authored
2 years ago
by
Trung Nguyen
Browse files
Options
Downloads
Plain Diff
Merge branch 'improve_sql_backup' into 'master'
Improve mysqldump command See merge request
!557
parents
5add95ef
3936e0eb
No related branches found
No related tags found
1 merge request
!557
Improve mysqldump command
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/slurm_sql_bk/templates/backup_mysql_for_slurm.sh.j2
+1
-1
1 addition, 1 deletion
roles/slurm_sql_bk/templates/backup_mysql_for_slurm.sh.j2
with
1 addition
and
1 deletion
roles/slurm_sql_bk/templates/backup_mysql_for_slurm.sh.j2
+
1
−
1
View file @
9a4444ab
...
...
@@ -9,7 +9,7 @@ DATA_DIR={{ SQL_BK_DATA_DIR }}
NAME
=
"
$DATA_DIR
/mysql_dump_20
${
TIME
}
.sql"
cd
$DATA_DIR
sudo
mysqldump
--defaults-file
=
$BIN_DIR
/mysql.conf
--host
={{
SQL_IP
}}
slurm_acct_db
>
$NAME
sudo
mysqldump
--defaults-file
=
$BIN_DIR
/mysql.conf
--single-transaction
--host
={{
SQL_IP
}}
slurm_acct_db
>
$NAME
sudo chmod
go-r
$NAME
sudo gzip
-f
$NAME
#scp file to dummy user @ Destination Node and Directory
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment