Skip to content

Instantly share code, notes, and snippets.

@ddebin
ddebin / scaleway-instance-auto-backup.sh
Last active September 27, 2024 14:42
Auto-rotate backup for Scaleway instances
#!/usr/bin/env bash
# https://gist.github.com/ddebin/348e685fad7b03c347f3d3de96800ad9
# Auto-rotate backup for Scaleway instances, uses https://github.com/scaleway/scaleway-cli/
set -e
while getopts ":p:i:" FLAG; do
case "${FLAG}" in
p) PROFILE=${OPTARG} ;;
i) INSTANCE_ID=${OPTARG} ;;
:)
echo "Option -${OPTARG} requires an argument."