#!/bin/bash
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
SRC="/var/www/html/public/circuitx"

for cam in cam01 cam02 cam03 cam04 cam05 master; do
    aws s3 cp "$SRC/$cam" "s3://intoreality.tv-output/demo-circuitx/backups/$TIMESTAMP/$cam/" --recursive
done

echo "S3 backup completed: s3://intoreality.tv-output/demo-circuitx/backups/$TIMESTAMP/"
