Files
zellyy-finance/archive/scripts/cleanup-ios-backups.sh

29 lines
575 B
Bash
Executable File

#!/bin/bash
# iOS 백업 파일 정리 스크립트
echo "iOS 백업 파일 정리 중..."
# 프로젝트 디렉토리로 이동
cd "$(dirname "$0")"
# 백업 디렉토리 목록
BACKUP_DIRS=(
"ios_backup_20250319_215301"
"ios_backup_final_20250319_220935"
"ios.bak.20250319204258"
)
# 백업 디렉토리 삭제
for dir in "${BACKUP_DIRS[@]}"; do
if [ -d "$dir" ]; then
echo "삭제: $dir"
rm -rf "$dir"
fi
done
# .bak 파일 찾아서 삭제
echo "백업(.bak) 파일 삭제 중..."
find . -name "*.bak" -type f -print -delete
echo "정리 완료!"