Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
258045a0
Commit
258045a0
authored
8 years ago
by
John Eskew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3073 from edx/jeskew/fix_gocd_backup
Specify path to aws command.
parents
64f63650
f57629ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
playbooks/roles/go-server/templates/gocd_backup.j2
+2
-2
No files found.
playbooks/roles/go-server/templates/gocd_backup.j2
View file @
258045a0
...
...
@@ -60,7 +60,7 @@ tar zcvf "$gocd_backup_location" -C "$(dirname "$backup_path")" "${backup_dir_na
dated_backup_filename
=
"
${
gocd_backup_base
}
-
${
backup_dir_name
}
.tgz"
# Transfer tarball to S3 with datetime'd filename.
aws_output
=
$(
aws s3 cp
"
${
gocd_backup_location
}
"
"s3://
${
s3_backup_bucket
}
/
${
dated_backup_filename
}
"
2>&1
)
aws_output
=
$(
/usr/local/bin/aws s3 cp
"
${
gocd_backup_location
}
"
"s3://
${
s3_backup_bucket
}
/
${
dated_backup_filename
}
"
2>&1
)
||
echo
$aws_output
&&
exit
case
$aws_output
in
*
failed
*
)
echo
"Backup transfer failed:
$aws_output
"
...
...
@@ -72,7 +72,7 @@ case $aws_output in
esac
# Transfer tarball to S3 with official backup filename.
aws_output
=
$(
aws s3 cp
"
${
gocd_backup_location
}
"
"s3://
${
s3_backup_bucket
}
"
2>&1
)
aws_output
=
$(
/usr/local/bin/aws s3 cp
"
${
gocd_backup_location
}
"
"s3://
${
s3_backup_bucket
}
"
2>&1
)
||
echo
$aws_output
&&
exit
case
$aws_output
in
*
failed
*
)
echo
"Backup transfer failed:
$aws_output
"
...
...
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