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
e31f86d0
Commit
e31f86d0
authored
Mar 12, 2018
by
Adrian Horrocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added functionality for specifying a source director
parent
2a678e56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
userdata.tpl
userdata.tpl
+1
-1
variables.tf
variables.tf
+5
-0
No files found.
userdata.tpl
View file @
e31f86d0
...
...
@@ -8,7 +8,7 @@ mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=
cd /
mkdir efs_backup
cd efs_backup
tar -zcvf $
{
backup_archive_name
}
/efs
tar -zcvf $
{
backup_archive_name
}
$
{
source_directory
}
# unmount efs
umount /efs
...
...
variables.tf
View file @
e31f86d0
...
...
@@ -64,3 +64,8 @@ variable "key_name" {
description
=
"An optional SSH key pair to launch the backup instance with"
default
=
""
}
variable
"source_directory"
{
description
=
"An optional specific source directory in the EFS mount of backup"
default
"/efs"
}
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