Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

About Custom Params #2

Closed
Geofferey opened this issue Jul 5, 2019 · 0 comments
Closed

About Custom Params #2

Geofferey opened this issue Jul 5, 2019 · 0 comments
Labels

Comments

@Geofferey
Copy link
Collaborator

Geofferey commented Jul 5, 2019

About Custom Params

Custom params is an addition I made to allow specification for a handful of rclone parameters on a per remote basis, without users having to modify main scripts or needing to write their own. Parameters are specified as PARAM=value inside a file. Each PRAM= is an arbitrary representation of a specific rclone argument/option with it's value following =.

All .*.param files should be placed in /sdcard/.rclone/ where * represents the name of a [remote] inside your rclone.conf

  • Here is an example rclone.conf with [remotes]:

InShot_20190705_175308622

Take note of [Ubuntu-VM], [Backup] & [Movies] in screenshot as the values inside [ ] will be used throughout Use Cases. The example above includes one real remote & two aliases to sub dirs accessible via the main remote [Ubuntu-VM]. Because of the way SFTP remotes work dirs outside your home are inaccessible & that's where aliases come in.

  • Example .*.param files in /sdcard/.rclone/:

InShot_20190705_231200926

  • List of cust params and the rclone ops they represent:

InShot_20190706_153837961

  • Example .*.param file content format:

InShot_20190706_122633426

Note: The above is just an example of specifiable params and their default values. There is no need to specify values you do not wish to change. Also take note of the empty line 7 after DISABLE=0, which is required for proper parsing of the file.


Use Cases

  • Workaround for VLC streaming issues:

VLC has an issue where it will attempt to fully cache media when playing from it's internal browser. The only recourse is to disable caching on the remote entirely or create a separate alias remote "[Movies]" and disable caching there.

InShot_20190706_161842938

  • Disable remote when only type = alias needed:

Because of the way SFTP remotes work you need to create aliases for directories outside of your starting directory. You may not want to mount the remote [Ubuntu-VM] that aliases exist for even though it is required inside rclone.conf

InShot_20190706_163809516

@Geofferey Geofferey changed the title Custom Params About Custom Params Jul 5, 2019
@Geofferey Geofferey pinned this issue Jul 5, 2019
@Magisk-Modules-Repo Magisk-Modules-Repo locked and limited conversation to collaborators Jul 6, 2019
@Geofferey Geofferey added the Info label Jul 30, 2019
@piyushgarg piyushgarg unpinned this issue Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant