iOS 백업 파일 정리

This commit is contained in:
hansoo
2025-03-19 22:54:56 +09:00
parent 2553b2f6a1
commit b639453854
3 changed files with 28 additions and 119 deletions

28
cleanup-ios-backups.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/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 "정리 완료!"