Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_efs_backup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
tf_mod_aws_efs_backup
Commits
bcc4185e
Commit
bcc4185e
authored
Apr 26, 2018
by
Sean Clerkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce tar and awscli logging
parent
a7ed7343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
userdata.tpl
userdata.tpl
+2
-2
No files found.
userdata.tpl
View file @
bcc4185e
...
...
@@ -8,13 +8,13 @@ mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=
cd /
mkdir efs_backup
cd efs_backup
tar -zc
v
f $
{
backup_archive_name
}
$
{
source_directory
}
tar -zcf $
{
backup_archive_name
}
$
{
source_directory
}
# unmount efs
umount /efs
# copy archive to s3
aws s3 cp --sse AES256 $
{
backup_archive_name
}
s3://$
{
s3_bucket_path
}
/$
{
backup_archive_name
}
.`date +"%Y%m%d-%H%M"`.tar.gz
aws s3 cp --sse AES256 $
{
backup_archive_name
}
s3://$
{
s3_bucket_path
}
/$
{
backup_archive_name
}
.`date +"%Y%m%d-%H%M"`.tar.gz
--quiet
# self terminate by changing the desired ASG capacity to zero
aws autoscaling --region $
{
region
}
set-desired-capacity --auto-scaling-group-name $
{
name
}
--desired-capacity 0 --no-honor-cooldown
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