Skip to content

Commit

Permalink
revert dynamic exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Oct 31, 2024
1 parent 467fb8e commit 06d90e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 66 deletions.
13 changes: 5 additions & 8 deletions controllers/jobs/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func RunJob(job *store.Job, storeInstance *store.Store, token *store.Token) (*st
smbPath,
srcPath,
"-o",
fmt.Sprintf("username=%s,password=%s", os.Getenv("DOMAIN_USER"), os.Getenv("DOMAIN_PASS")),
fmt.Sprintf("domain=%s,username=%s,password=%s,mfsymlinks,ro,mapchars", os.Getenv("DOMAIN"), os.Getenv("DOMAIN_USER"), os.Getenv("DOMAIN_PASS")),
}

mnt := exec.Command("mount", mountArgs...)
Expand All @@ -69,13 +69,10 @@ func RunJob(job *store.Job, storeInstance *store.Store, token *store.Token) (*st
"--repository",
job.Store,
"--change-detection-mode=metadata",
}

exclusions, err := utils.GetExclusions(srcPath)

for _, exclusion := range exclusions {
cmdArgs = append(cmdArgs, "--exclude")
cmdArgs = append(cmdArgs, exclusion)
"--exclude",
"System Volume Information",
"--exclude",
"$RECYCLE.BIN",
}

if job.Namespace != "" {
Expand Down
58 changes: 0 additions & 58 deletions utils/get_exclusions.go

This file was deleted.

0 comments on commit 06d90e7

Please sign in to comment.