Commit e31f86d0 authored by Adrian Horrocks's avatar Adrian Horrocks

added functionality for specifying a source director

parent 2a678e56
......@@ -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
......
......@@ -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"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment