├── README.md ├── LICENSE.txt └── com.gdrive.plist /README.md: -------------------------------------------------------------------------------- 1 | # Running an RClone Mount at MacOS System Startup 2 | 3 | Here's my plist (property list) example for mounting your RClone remote to MacOS as a system drive/folder. I've implemented local caching to allow for failures and a 40M bandwidth limit which you can easily change. 4 | 5 | * First ensure that you've installed RClone and have configured your remote that you wish to mount to MacOS. 6 | * Also make sure you have installed OSXFUSE: http://osxfuse.github.io 7 | 8 | 9 | ## Usage 10 | 11 | 1. Take my plist file and place it in `/Library/LaunchDaemons` 12 | 2. Edit the file as nescesarry, changing the remote name (`gdrive:`) and any references to `` 13 | 3. Create a folder `/Users//Encrypted` (or something else of your chosing) 14 | 4. Add the property list file into launchctl: `sudo launchctl load -w /Library/LaunchDaemons/com.gdrive.plist` 15 | 5. Start the service you just created: `sudo launchctl start -w /Library/LaunchDaemons/com.gdrive.plist` 16 | 17 | You can stop the service using the `stop` command or remove it from your system using `unload` 18 | 19 | Check `Users//Documents/logs` for error logging. 20 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Callum Parkinson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /com.gdrive.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | KeepAlive 6 | 7 | Label 8 | RClone-Mount 9 | ProgramArguments 10 | 11 | /usr/local/bin/rclone 12 | mount 13 | --allow-other 14 | --allow-non-empty 15 | --config=/Users//.config/rclone/rclone.conf 16 | --cache-tmp-upload-path=/tmp/rclone/upload 17 | --cache-chunk-path=/tmp/rclone/chunks 18 | --cache-workers=8 19 | --cache-writes 20 | --cache-dir=/tmp/rclone/vfs 21 | --cache-db-path=/tmp/rclone/db 22 | --no-modtime 23 | --drive-use-trash 24 | --stats=0 25 | --checkers=16 26 | --bwlimit=40M 27 | --dir-cache-time=60m 28 | --cache-info-age=60m 29 | gdrive: 30 | /Users//Encrypted 31 | 32 | RunAtLoad 33 | 34 | StandardErrorPath 35 | /Users//Documents/logs/rclone-mount.log 36 | StandardOutPath 37 | /Users//Documents/logs/stdout 38 | 39 | --------------------------------------------------------------------------------