#!/bin/bash

STAMP=$(date +%F_%H%M%S)
BASE="/var/www/html/easychair"

mkdir -p "$BASE/backups/homepage_studio_$STAMP"

cp "$BASE/app/views/admin/conference_home/studio.php" \
"$BASE/backups/homepage_studio_$STAMP/studio.php"

cp "$BASE/app/controllers/AdminConferenceHomeController.php" \
"$BASE/backups/homepage_studio_$STAMP/AdminConferenceHomeController.php"

cp "$BASE/config/routes.php" \
"$BASE/backups/homepage_studio_$STAMP/routes.php"

echo "Backup created:"
echo "$BASE/backups/homepage_studio_$STAMP"
