Skip to content
Snippets Groups Projects
Commit de5856de authored by Raphael Storm Larsen's avatar Raphael Storm Larsen
Browse files

Fixed backup script

parent d9b6369a
No related branches found
No related tags found
No related merge requests found
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment