소스정
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,6 +1,2 @@
|
|||||||
# 테스트경로
|
.idea
|
||||||
testA/
|
|
||||||
testB/
|
|
||||||
|
|
||||||
# 실행파일
|
|
||||||
backup
|
backup
|
||||||
|
|||||||
2
.idea/modules.xml
generated
2
.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<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>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
0
.idea/backup.iml → .idea/simple_backup.iml
generated
0
.idea/backup.iml → .idea/simple_backup.iml
generated
@@ -60,9 +60,9 @@ func showHelp() {
|
|||||||
기존 파일 존재 시 강제로 덮어씀
|
기존 파일 존재 시 강제로 덮어씀
|
||||||
|
|
||||||
예시:
|
예시:
|
||||||
backup /source /backup --group-by day --compare hash
|
backup /source /simple_backup --group-by day --compare hash
|
||||||
backup /home/user/docs /backup/docs -i -v
|
backup /home/user/docs /simple_backup/docs -i -v
|
||||||
backup /data /backup -d --force
|
backup /data /simple_backup -d --force
|
||||||
|
|
||||||
자세한 정보: https://github.com/yourusername/backup`
|
자세한 정보: https://github.com/yourusername/backup`
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import (
|
|||||||
"git.lhk.o-r.kr/freerer2/simple_backup/internal/constants"
|
"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.
|
// If groupBy is invalid or empty, it returns the basePath unchanged.
|
||||||
//
|
//
|
||||||
// Parameters:
|
// 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)
|
// - groupBy: grouping option (year, mon, day, hour, min, sec)
|
||||||
// - t: time to use for path generation
|
// - t: time to use for path generation
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
package testA
|
|
||||||
Reference in New Issue
Block a user