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
ced15a1d
Commit
ced15a1d
authored
6 years ago
by
Simon Michnowicz
Browse files
Options
Downloads
Patches
Plain Diff
added -i keyfile on crontab command
Former-commit-id:
69798b30
parent
34ee6204
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/slurm_sql_bk/tasks/main.yml
+2
-2
2 additions, 2 deletions
roles/slurm_sql_bk/tasks/main.yml
with
2 additions
and
2 deletions
roles/slurm_sql_bk/tasks/main.yml
+
2
−
2
View file @
ced15a1d
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
minute
:
55
minute
:
55
become
:
true
become
:
true
become_user
:
root
become_user
:
root
-
name
:
Create directory {{ SQL_BK_DATA_DIR }}
-
name
:
Create directory {{ SQL_BK_DATA_DIR }}
to store initial mysql dump
file
:
path={{ SQL_BK_DATA_DIR }} state=directory
file
:
path={{ SQL_BK_DATA_DIR }} state=directory
become
:
true
become
:
true
become_user
:
root
become_user
:
root
...
@@ -64,4 +64,4 @@
...
@@ -64,4 +64,4 @@
-
name
:
copy backup script to server ec2-user@{{ SQL_BK_DEST_HOST }}
-
name
:
copy backup script to server ec2-user@{{ SQL_BK_DEST_HOST }}
local_action
:
command scp -i ./slm_db_backup ./delete_old_mysql_bk.sh "ec2-user@{{ SQL_BK_DEST_HOST }}:"
local_action
:
command scp -i ./slm_db_backup ./delete_old_mysql_bk.sh "ec2-user@{{ SQL_BK_DEST_HOST }}:"
-
name
:
insert delete cron job entry on remote server
-
name
:
insert delete cron job entry on remote server
local_action
:
command ssh ec2-user@{{ SQL_BK_DEST_HOST }} "{ crontab -l ; echo '#delete old slurm backups' ; echo '00 23 * * * /home/ec2-user/backup_mysql_for_slurm.sh' ; } | crontab - "
local_action
:
command ssh
-i ./slm_db_backup
ec2-user@{{ SQL_BK_DEST_HOST }} "{ crontab -l ; echo '#delete old slurm backups' ; echo '00 23 * * * /home/ec2-user/backup_mysql_for_slurm.sh' ; } | crontab - "
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