Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "merging" rclone options #22

Open
chazlarson opened this issue Jul 31, 2020 · 0 comments
Open

Allow "merging" rclone options #22

chazlarson opened this issue Jul 31, 2020 · 0 comments

Comments

@chazlarson
Copy link

chazlarson commented Jul 31, 2020

It would be useful to be able to use a default list of rclone options, then add to or override these options on an individual syncer/mover/deduper level.

This would prevent having to duplicate the entire list of rclone options into each syncer/mover/deduper only to change one or two.

For example, say you want to use a different backup-dir on different syncers. Something like this would be useful and convenient:

rclone:
  ...
  global_params:
    default:
      sync:
        - '--fast-list'
        - '--tpslimit-burst=50'
        ...etc

syncer:

  - name: td_1 sync
    enabled: true
    source_remote: 'td_1:/stuff'
    remotes:
      sync:
        - 'td_1_mirror:/stuff'
    rclone_params:
      global_sync: default
      sync:
        - '--backup-dir=td_1_mirror:backup'

  - name: td_2 sync
    enabled: true
    source_remote: 'td_2:/stuff'
    remotes:
      sync:
        - 'td_2_mirror:/stuff'
    rclone_params:
      global_sync: default
      sync:
        - '--backup-dir=td_2_mirror:backup'

Each syncer would inherit the global set of flags, and then add on unique one. This prevents having to duplicate a common set of flags in every syncer entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant