Commit bcc4185e authored by Sean Clerkin's avatar Sean Clerkin

Reduce tar and awscli logging

parent a7ed7343
......@@ -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 -zcvf ${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
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