mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
update rsync options
This commit is contained in:
parent
aaa535df5f
commit
eecd8628cc
@ -52,8 +52,9 @@ class MirrorProvider(object):
|
||||
|
||||
class RsyncProvider(MirrorProvider):
|
||||
|
||||
_default_options = \
|
||||
"-aHvh --stats --delete --delete-delay --safe-links --timeout=120 --contimeout=120"
|
||||
_default_options = ['-aHvh', '--no-o', '--no-g', '--stats',
|
||||
'--delete', '--delete-delay', '--safe-links',
|
||||
'--timeout=120', '--contimeout=120']
|
||||
|
||||
def __init__(self, name, upstream_url, local_dir, log_dir,
|
||||
useIPv6=True, password=None, exclude_file=None,
|
||||
@ -69,7 +70,7 @@ class RsyncProvider(MirrorProvider):
|
||||
@property
|
||||
def options(self):
|
||||
|
||||
_options = self._default_options.split()
|
||||
_options = [o for o in self._default_options] # copy
|
||||
|
||||
if self.useIPv6:
|
||||
_options.append("-6")
|
||||
|
Loading…
x
Reference in New Issue
Block a user