Commit Graph

39 Commits

Author SHA1 Message Date
Shengqi Chen d2b3e731bf
Fix numerous lint issues
Some checks are pending
tunasync / Build (push) Waiting to run
tunasync / Test (push) Waiting to run
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-02-27 22:42:49 +08:00
Harry Chen a64557b86d
Implement global.rsync_options (fixes #206)
Signed-off-by: Harry Chen <i@harrychen.xyz>
2025-02-27 17:37:22 +08:00
Harry Chen 27e4307375
Implement rsync_override_only in mirrorConfig
Signed-off-by: Harry Chen <i@harrychen.xyz>
2025-02-27 16:45:43 +08:00
Shengqi Chen ef32197fef
Run go fmt
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 16:00:34 +08:00
Miao Wang 1804a31b6a Bugfix change the order of options in 2f9e96a
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
2021-09-02 22:19:05 +08:00
Miao Wang 2f9e96a75a add --filter "risk .~tmp~/" to rsync options
This option is for delete `.~tmp~/` folder upon successful sync,
`--delete-excluded` will not be needed.
2020-09-15 20:01:24 +08:00
zyx c00eb12a75 Two new options for rsync provider
- rsync_no_timeout=true/false # disable --timeout option
- rsync_timeout=n # set --timeout=n
related to issue #121
2020-06-03 13:26:49 +08:00
zyx e47ba2097e add a timeout field to providers 2020-05-25 18:24:05 +08:00
z4yx 38b0156fae [bug fix] provider is not terminated if premature stop command received 2020-05-09 18:42:54 +08:00
z4yx 91209cab60 translate rsync exit code to error message (solve #20). May help #109 and #110 2020-03-28 16:26:40 +08:00
z4yx 1fb9f85862 closing log files where they were opened 2020-03-28 16:26:40 +08:00
zyx b1f2679fbf [cmd provider] add support of match size in logs 2020-03-20 10:30:44 +08:00
zyx aee1a705b7 remove "--contimeout=120" from default rsync options 2020-03-16 22:23:47 +08:00
zyx 9eb72c5db0 fix misuse of variables 2020-03-16 21:59:34 +08:00
z4yx ae5ff25d20 in case rsyncEnv is nil 2020-03-16 21:11:15 +08:00
z4yx 365f49e6d3 add support of env config for rsync provider 2020-03-16 20:59:08 +08:00
z4yx 80ad3247a0 fix build 2020-03-13 15:16:39 +08:00
z4yx 02468e21c0 add an option "rsync_override" 2020-03-13 15:12:52 +08:00
Yuxiang Zhang 22cfdfc9c2
[mirror config] extra rsync options (#107)
* support "rsync_options" array in config

* add test for new options

* fix tests
2020-03-09 20:48:09 +08:00
zyx 9f91d90fc5 check Retry configuration in providers 2019-04-13 11:01:56 +08:00
zyx 1aa4ae9cc1 Merge remote-tracking branch 'kinosang/master' into wip-test-pr 2019-04-13 02:07:41 +08:00
zyx d0deeb19a9 extract mirror size from rsync provider automatically 2019-04-13 01:27:35 +08:00
Yuxiang Zhang 0fdb07d061 bug fix: log over-written in twoStageRsyncProvider
solve more DATA RACE problem
2018-05-30 12:28:09 +08:00
bigeagle a475b044c6 feat(worker): add 'use_ipv4' option for rsync provider 2017-09-08 00:15:48 +08:00
bigeagle a50a360a91 Revert "feat(worker): add '-4' option to rsync when 'use_ipv6' is false"
This reverts commit d536aca2ac.
2017-09-08 00:12:40 +08:00
bigeagle d536aca2ac feat(worker): add '-4' option to rsync when 'use_ipv6' is false 2017-09-06 23:22:55 +08:00
7IN0SAN9 563860d424
fix #63 2017-03-27 13:09:56 +08:00
bigeagle ebeee6bc34
feat(worker): added username option for rsync providers 2016-06-14 21:37:03 +08:00
bigeagle ccc31d9289
refactor(worker): added Type() method to provider 2016-05-08 16:26:58 +08:00
bigeagle 924fda6dd8
feature(worker): use cgroup track job process, so that they can be all-killed 2016-04-30 16:43:30 +08:00
bigeagle ce3471e30d
feature(worker): implemented Worker object, worker side code is almost done 2016-04-30 16:41:39 +08:00
bigeagle 6062aa4b9d
refactor(worker): rename provider.setLogFile to provider.prepareLogFile 2016-04-30 16:40:45 +08:00
bigeagle 13161d77cf
feature(worker): two-stage-rsync provider 2016-04-30 16:40:12 +08:00
bigeagle 9339fba074
refactor(worker): use Run instead of Start and Wait 2016-04-30 16:40:05 +08:00
bigeagle a6e8e9e2d9
feature(worker): implemented rsync provider 2016-04-30 16:39:59 +08:00
bigeagle f336fda736
feature(worker): mirrorConfig -> mirrorProvider 2016-04-30 16:39:53 +08:00
bigeagle 681388ffdd
feature(worker): toplevel mirror job logic 2016-04-30 16:39:08 +08:00
bigeagle 0e808a449a
refactor(worker): change provider's Run method to Start, and change logfile handling 2016-04-30 16:38:57 +08:00
bigeagle 44af0d5e62
feature(worker): framework of mirror provider 2016-04-30 16:38:17 +08:00