This commit is contained in:
Oliver
2026-03-06 16:04:09 -03:00
parent 099dd17467
commit e3068f8925
12 changed files with 138 additions and 15 deletions

View File

@@ -1,7 +1,5 @@
#!/bin/bash
# Usage: ./start_by_uuid.sh <uuid>
# Example: ./start_by_uuid.sh abc-001-xxxx-xxxx-xxxx
exec > /4server/data/log/backupContainer.log 2>&1
exec >> /4server/data/log/backupContainer_$1.log 2>&1
echo "$(date '+%Y-%m-%d %H:%M') Backup container $1"
source /4server/sbin/helpers
@@ -20,6 +18,8 @@ get_contract_info
# Extract the second part of UUID (split by "-")
SECOND_PART=$(echo "$UUID" | cut -d'-' -f2)
echo "Conatiner Type $UUID"
# Decide which script to run
case "$SECOND_PART" in
001)
@@ -40,4 +40,3 @@ case "$SECOND_PART" in
exit 2
;;
esac