Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
f3e0cc97
Commit
f3e0cc97
authored
9 years ago
by
Gliders User
Browse files
Options
Download
Email Patches
Plain Diff
added a daily backup job for gliders database
parent
abcddc50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
glidersbackup.service
glidersbackup.service
+11
-0
glidersbackup.timer
glidersbackup.timer
+9
-0
No files found.
glidersbackup.service
0 → 100644
View file @
f3e0cc97
[Unit]
Description
=
Back up gliders database from main server
[Service]
User
=
mysql
Type
=
simple
ExecStartPre
=
/usr/bin/ssh -f -L3310:mars.noc.ac.uk:3306 gliders@mars.noc.ac.uk -N
ExecStart
=
/usr/bin/bash -c "mysqldump -P 3310 -ugliders -p`cat ~/.gliders.password` gliders | gzip -9 > /local/mysql_backup/gliders.sql.gz"
[Install]
WantedBy
=
timers.target
This diff is collapsed.
Click to expand it.
glidersbackup.timer
0 → 100644
View file @
f3e0cc97
[Unit]
Description=Back up gliders database from main server
[Timer]
OnBootSec=24h
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment