Skip to content

A convenient Bash wrapper script for managing rclone mounts with enhanced features and systemd integration.

Notifications You must be signed in to change notification settings

numbor/rclone-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Rclone Wrapper Script

A convenient Bash wrapper script for managing rclone mounts with enhanced features and systemd integration.

Features

  • Easy installation of rclone and all dependencies
  • Automatic mount/unmount of remote storage
  • Configuration management via JSON file
  • Custom mount parameters for each remote
  • Auto-mounting at system boot via systemd
  • Easy updates via git repository
  • Multiple mount points support

Installation

# Download the script
curl -O https://raw.githubusercontent.com/numbor/rclone/main/rclone.sh
chmod +x rclone.sh

# Install rclone and setup the service
./rclone.sh install

Usage

Configure remotes

./rclone.sh config

List configured remotes

./rclone.sh list

Mount a remote

./rclone.sh mount remote_name
# Or mount all remotes
./rclone.sh mount all

Unmount a remote

./rclone.sh unmount remote_name
# Or unmount all remotes
./rclone.sh unmount all

Update the script

./rclone.sh update

Configuration

The script uses two configuration files:

  • ~/.config/rclone/rclone.conf - Standard rclone configuration
  • ~/.config/rclone-wrapper/settings.json - Wrapper-specific settings including:
    • Custom mount points for each remote
    • Mount parameters
    • Default mount options

Example settings.json:

{
  "gdrive": {
    "mount_point": "/mnt/gdrive",
    "mount_params": [
      "--vfs-cache-mode", "full",
      "--vfs-cache-max-age", "1h",
      "--buffer-size", "128M",
      "--dir-cache-time", "30s"
    ]
  }
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support My Work

If you find this script useful, consider buying me a coffee:

Buy Me A Coffee

About

A convenient Bash wrapper script for managing rclone mounts with enhanced features and systemd integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages