AWS EC2 instance screenshot

Sometimes you would like to know what happens with your EC2. Especially when it's unreachable and failed to start logging daemon. Despite absence of IP-KVM, you still may access your instance screen with aws CLI tool:

aws ec2 get-console-screenshot --instance-id i-0e434bded75493e2d | jq -cr '.ImageData' | base64 --decode > tmp.jpg

This command …

more ...

Organize backups with Restic and S3

Few days ago we set up Minio, AWS S3-compatible storage.

Let's now use another awesome utility, Restic, to make backups with snapshots and rotation.

In this example I would be using S3 storage based on minio, but it's okay to use AWS one or just a local folder. Another particularity …

more ...