### Install and Configure rclone Remotes Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Installs the Magisk module and guides through configuring cloud storage remotes using the interactive `rclone config` command. It covers adding a new remote, authorizing with OAuth, and how remotes are automatically mounted. ```bash # Install the module via Magisk Manager # Then open a terminal emulator and run: su rclone config # Follow the interactive prompts to add a remote # Example: Adding Google Drive # n) New remote # name> gdrive # Storage> drive # Follow OAuth flow to authorize # After configuration, remotes auto-mount to /mnt/cloud/ ls /mnt/cloud/gdrive ``` -------------------------------- ### rclone config - Interactive Remote Configuration Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Launches the interactive rclone configuration wizard to set up or modify cloud storage remotes. It details the available menu options for managing remotes and provides an example of the output after adding a remote. ```bash su rclone config # Interactive menu options: # e) Edit existing remote # n) New remote # d) Delete remote # r) Rename remote # c) Copy remote # s) Set configuration password # q) Quit config # Example output after adding a remote: # Current remotes: # Name Type # ==== ==== # gdrive drive # dropbox dropbox # onedrive onedrive ``` -------------------------------- ### Execute Direct rclone Commands Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Demonstrates how to execute standard rclone commands through the wrapper script, providing access to the full rclone feature set for managing cloud storage. ```bash su # List all configured remotes rclone listremotes # gdrive: # dropbox: # onedrive: # List files in a remote rclone ls gdrive:Documents # Copy files between remotes rclone copy gdrive:Photos dropbox:Backup/Photos # Sync directories rclone sync /sdcard/DCIM gdrive:Backup/DCIM # Check remote disk usage rclone about gdrive: # Total: 15 GB # Used: 5.2 GB # Free: 9.8 GB # Mount with custom flags directly rclone mount gdrive: /mnt/custom --vfs-cache-mode full --daemon ``` -------------------------------- ### Global Parameters - System-Wide Mount Configuration Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Sets system-wide default mount options by creating a `.global.param` file. These parameters apply to all remotes unless overridden by per-remote configurations. Options include logging, network checking, and enabling HTTP/FTP servers. ```bash # Create global parameters cat > /sdcard/.rclone/.global.param << 'EOF' # Logging configuration LOGFILE=/sdcard/.rclone/rclone.log LOGLEVEL=DEBUG # Network check settings NETCHK=1 NETCHK_ADDR=google.com # HTTP server (access remotes via browser) HTTP=1 HTTP_ADDR=127.0.0.1:38762 # FTP server FTP=1 FTP_ADDR=127.0.0.1:38763 EOF ``` -------------------------------- ### Configure Background Sync to Cloud Storage Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Sets up automatic synchronization of local directories to cloud storage using inotifywait. Sync respects battery level, charging state, and WiFi connectivity. ```bash # Configure automatic sync for a remote cat > /sdcard/.rclone/.gdrive.param << 'EOF' # Directories to sync (colon-separated) SDSYNCDIRS=DCIM/Camera:Documents/Work # Only sync on WiFi SYNC_WIFI=1 # Only sync when charging SYNC_CHARGE=1 # Minimum battery level to sync (0-100) SYNC_BATTLVL=20 # Optional: Mount a subpath of the remote SUBPATH=Backups/Phone EOF rclone remount # The sync daemon monitors specified directories and uploads changes # when conditions are met (WiFi connected, charging, battery > 20%) ``` -------------------------------- ### Enable HTTP, FTP, and SFTP Servers Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Configures the module to serve mounted cloud storage via HTTP, FTP, and SFTP protocols, allowing access from other devices or network-aware applications. ```bash # Enable all servers in global config cat > /sdcard/.rclone/.global.param << 'EOF' HTTP=1 HTTP_ADDR=0.0.0.0:8080 FTP=1 FTP_ADDR=0.0.0.0:2121 SFTP=1 SFTP_ADDR=0.0.0.0:2222 SFTP_USER=admin SFTP_PASS=secure123 EOF rclone remount # Access from another device: # Browser: http://192.168.1.100:8080 # FTP client: ftp://192.168.1.100:2121 # SFTP: sftp://admin@192.168.1.100:2222 # Access from apps on the same device: # HTTP: http://127.0.0.1:8080 # Use in download managers or media players ``` -------------------------------- ### Configure SFTP Server Access Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Enables and configures an SFTP server to access mounted cloud storage. Requires specifying the address, username, and password for the SFTP server. ```bash # SFTP server (requires credentials) SFTP=1 SFTP_ADDR=127.0.0.1:38722 SFTP_USER=rclone SFTP_PASS=secretpassword # Work Profile support (profile ID) PROFILE=0 EOF # After remount, servers start automatically: # HTTP Server: http://127.0.0.1:38762 # FTP Server: ftp://127.0.0.1:38763 # SFTP Server: sftp://127.0.0.1:38722 ``` -------------------------------- ### Enable SD Card Binding for Cloud Remotes Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Creates accessible mount points under `/sdcard/Cloud/` for cloud remotes, enhancing app compatibility. Supports default binding or custom bind points. ```bash # Enable SD binding for a specific remote cat > /sdcard/.rclone/.gdrive.param << 'EOF' BINDSD=1 EOF # Or use custom bind point cat > /sdcard/.rclone/.photos.param << 'EOF' BINDSD=1 SDBINDPOINT=Pictures/CloudPhotos EOF rclone remount # Output: # [gdrive] available at: -> [/mnt/cloud/gdrive] # [gdrive] available at: -> [/sdcard/Cloud/gdrive] # [photos] available at: -> [/storage/emulated/0/Pictures/CloudPhotos] ``` -------------------------------- ### Custom Parameters - Per-Remote Mount Configuration Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Allows fine-tuning of mount options for individual cloud remotes by creating a `.REMOTENAME.param` file. This file contains key-value pairs that override default settings, such as cache mode, binding to `/sdcard/Cloud/`, read-only status, VFS cache settings, UID/GID, and permissions. ```bash # Create custom parameters for a remote named "gdrive" cat > /sdcard/.rclone/.gdrive.param << 'EOF' # Cache mode: off, minimal, writes, full CACHEMODE=writes # Enable binding to /sdcard/Cloud/gdrive BINDSD=1 # Read-only mode READONLY=0 # Custom VFS cache settings DIRCACHETIME=1h0m0s ATTRTIMEOUT=1m0s BUFFERSIZE=16M # Custom mount UID/GID M_UID=0 M_GID=1015 # Directory and file permissions DIRPERMS=0775 FILEPERMS=0644 # Additional rclone parameters ADD_PARAMS=--fast-list --drive-chunk-size 64M EOF # Apply the configuration rclone remount # Output: # Found .gdrive.param # loading .gdrive.param # Importing CACHEMODE=writes # Importing BINDSD=1 ``` -------------------------------- ### Mount Cloud Remotes for Work Profiles Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Allows mounting cloud remotes specifically for Android Work Profiles, with an option to isolate them from the personal profile. ```bash # Mount for Work Profile (profile ID 10) cat > /sdcard/.rclone/.workdrive.param << 'EOF' PROFILE=10 BINDSD=1 ISOLATE=1 EOF rclone remount # Output with ISOLATE=1: # Remote mounted to /data/media/10/.cloud/workdrive # Only accessible from Work Profile apps ``` -------------------------------- ### Disable and Re-enable rclone Mount Module Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Explains how to disable the rclone mount module service without uninstalling by creating a `.disable` file, and how to re-enable it by removing the file. ```bash # Disable the module service (won't auto-mount on boot) touch /sdcard/.rclone/.disable # Re-enable the module service rm /sdcard/.rclone/.disable rclone remount # Check module status cat /data/adb/modules/rclone.mount/module.prop # id=rclone.mount # name=Cloud Storage Mounter # version=rclone: (v1.56.0) mod: (v1.14) ``` -------------------------------- ### rclone remount - Re-mount All Cloud Remotes Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt A wrapper command that unmounts all currently active cloud remotes and then re-executes the service script to mount them again. This is useful for applying configuration changes or recovering from mount issues. ```bash su rclone remount # Output: # Killing & Unmounting Remotes.... # Default CACHEMODE off # [gdrive] available at: -> [/mnt/cloud/gdrive] # [dropbox] available at: -> [/mnt/cloud/dropbox] # [gdrive] available at: -> [/sdcard/Cloud/gdrive] ``` -------------------------------- ### rclone unmount - Unmount All Cloud Remotes Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt This command forcefully unmounts all cloud storage mount points and terminates associated rclone processes, ensuring a clean disconnection of all remotes from the filesystem. ```bash su rclone unmount # Output: # Killing & Unmounting Remotes.... # (All mounts at /mnt/cloud/* are removed) ``` -------------------------------- ### rclone disable - Prevent Specific Remote Mounting Source: https://context7.com/avinashreddy3108/rclone-mount-magisk/llms.txt Disables the automatic mounting of a specific cloud remote during boot or remount operations by creating a `.REMOTENAME.disable` file. It also shows how to re-enable the remote by removing this file. ```bash su rclone disable dropbox # Output: # disabling remote dropbox # The remote will show as disabled during next remount: # dropbox disabled by user # To re-enable, remove the disable file: rm /sdcard/.rclone/.dropbox.disable rclone remount ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.