File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ .vscode
Original file line number Diff line number Diff line change 55
66Repository contains some helpful tools:
77- raw rsync wrapper
8- - rsync task — wrapper which provide important information about rsync task: progress, remain items, total items and speed
8+ - rsync task — wrapper which provide important information about rsync task: progress, remain items, total items and speed
99
1010## Task wrapper usage
1111
Original file line number Diff line number Diff line change @@ -187,6 +187,8 @@ type RsyncOptions struct {
187187 Info string
188188 // Exclude --exclude="", exclude remote paths.
189189 Exclude []string
190+ // ExcludeFrom --exclude-from="", read exclude patterns from FILE
191+ ExcludeFrom string
190192 // Include --include="", include remote paths.
191193 Include []string
192194 // Filter --filter="", include filter rule.
@@ -597,6 +599,10 @@ func getArguments(options RsyncOptions) []string {
597599 }
598600 }
599601
602+ if options .ExcludeFrom != "" {
603+ arguments = append (arguments , fmt .Sprintf ("--exclude-from=%s" , options .ExcludeFrom ))
604+ }
605+
600606 if options .Filter != "" {
601607 arguments = append (arguments , fmt .Sprintf ("--filter=%s" , options .Filter ))
602608 }
You can’t perform that action at this time.
0 commit comments