Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCSG2003
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD 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
Raphael Storm Larsen
DCSG2003
Commits
de5856de
Commit
de5856de
authored
2 years ago
by
Raphael Storm Larsen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed backup script
parent
d9b6369a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration/manager/backupDatabase.sh
+1
-7
1 addition, 7 deletions
configuration/manager/backupDatabase.sh
with
1 addition
and
7 deletions
configuration/manager/backupDatabase.sh
+
1
−
7
View file @
de5856de
...
@@ -7,9 +7,6 @@ ip=$(openstack server list --name $name | tail -2 | head -1 | cut -d'|' -f5 | g
...
@@ -7,9 +7,6 @@ ip=$(openstack server list --name $name | tail -2 | head -1 | cut -d'|' -f5 | g
discord_log
"Initiating daily backup..."
discord_log
"Initiating daily backup..."
# Turn production off
bash /home/ubuntu/dcsg2003/configuration/manager/production.sh down
# Start backup server
# Start backup server
openstack server start
$name
openstack server start
$name
...
@@ -24,6 +21,3 @@ ssh root@$ip bash /home/ubuntu/dcsg2003/configuration/backupServer/backup.sh
...
@@ -24,6 +21,3 @@ ssh root@$ip bash /home/ubuntu/dcsg2003/configuration/backupServer/backup.sh
# Turn off backup server
# Turn off backup server
openstack server stop
$name
openstack server stop
$name
\ No newline at end of file
# Restore Production status
bash /home/ubuntu/dcsg2003/configuration/manager/production.sh up
\ No newline at end of file
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