Day 10: Automating SSH Backups and the True Cost of AWS Elastic IPs
A DevOps learning exercise on Day 10 focused on two tasks: writing a Bash script to automate directory backups over SSH and assigning a stable public IP to an AWS EC2 instance. The backup script uses zip and scp to transfer archives to a remote server, with passwordless authentication enabled via SSH key pairs to allow unattended execution. Pairing the script with a cron job turns it into a fully automated nightly backup system. On the AWS side, an Elastic IP was associated with an EC2 instance to prevent its public address from changing on every restart. Notably, since February 1, 2024, AWS charges approximately $0.005 per hour for every public IPv4 address regardless of whether it is attached to a running instance, ending the previously free attached-IP model.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in