소스정

This commit is contained in:
LHK
2025-08-01 13:57:02 +09:00
부모 2a7b3c5468
커밋 389faa72be
6개의 변경된 파일7개의 추가작업 그리고 12개의 파일을 삭제

6
.gitignore vendored
파일 보기

@@ -1,6 +1,2 @@
# 테스트경로
testA/
testB/
# 실행파일
.idea
backup

2
.idea/modules.xml generated
파일 보기

@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/backup.iml" filepath="$PROJECT_DIR$/.idea/backup.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/simple_backup.iml" filepath="$PROJECT_DIR$/.idea/simple_backup.iml" />
</modules>
</component>
</project>

파일 보기

@@ -60,9 +60,9 @@ func showHelp() {
기존 파일 존재 시 강제로 덮어씀
예시:
backup /source /backup --group-by day --compare hash
backup /home/user/docs /backup/docs -i -v
backup /data /backup -d --force
backup /source /simple_backup --group-by day --compare hash
backup /home/user/docs /simple_backup/docs -i -v
backup /data /simple_backup -d --force
자세한 정보: https://github.com/yourusername/backup`

파일 보기

@@ -9,11 +9,11 @@ import (
"git.lhk.o-r.kr/freerer2/simple_backup/internal/constants"
)
// GetGroupByFolder generates a backup path based on the groupBy option and time.
// GetGroupByFolder generates a simple_backup path based on the groupBy option and time.
// If groupBy is invalid or empty, it returns the basePath unchanged.
//
// Parameters:
// - basePath: the base directory path for backup
// - basePath: the base directory path for simple_backup
// - groupBy: grouping option (year, mon, day, hour, min, sec)
// - t: time to use for path generation
//

파일 보기

@@ -1 +0,0 @@
package testA