plugin-rclone-manager
v0.1.5
Published
Manage Rclone RC connections, cloud remotes, workflow-driven sync/copy transfers, mounts, and serve endpoints from NocoBase.
Downloads
446
Maintainers
Readme
plugin-rclone-manager
Manage one or multiple Rclone Remote Control (rclone rcd) nodes from NocoBase 2.x (client v1 & client-v2), with Workflow-driven non-blocking transfers and granular ACL controls for high-privilege operations.
Quick Start (rclone rcd)
Run Rclone in daemon mode with --rc-serve enabled (for direct streaming downloads and HTTP Range support without ephemeral ports):
docker run -d \
--name rclone-rcd \
-p 5572:5572 \
-v ~/.config/rclone:/config/rclone \
rclone/rclone:latest \
rcd --rc-serve --rc-addr=0.0.0.0:5572 --rc-user=admin --rc-pass='change-me'Then open Plugin Settings -> Rclone Manager -> Connections & Config in NocoBase and register http://rclone-rcd:5572 (supports {{$env.VAR}} secret references).
Modules & ACL Snippets
pm.plugin-rclone-manager.access: Display Rclone Manager in settings / embedded blocks.pm.plugin-rclone-manager.read: View Dashboard, cloud remotes (secrets masked), File Explorer, and Transfers.pm.plugin-rclone-manager.transfer: Upload, download stream,mkdir,delete, in-place rename, stop jobs, and dispatch Copy / Move / Sync workflows.pm.plugin-rclone-manager.remotes: Create, update, and delete cloud storage remotes (/config/providersdynamic schema).pm.plugin-rclone-manager.local-fs(High privilege): Browse and transfer on host local disks (/core/disks, local paths,type=localremotes).pm.plugin-rclone-manager.mounts(High privilege): Manage FUSE mounts (/mount/*).pm.plugin-rclone-manager.serves(High privilege): Start/stop HTTP, WebDAV, SFTP, FTP, DLNA, and S3 serve endpoints (/serve/*).pm.plugin-rclone-manager.raw-config(High privilege): Tune runtime flags (Transfers,Checkers,BwLimit,TPSLimit,LogLevel) and editrclone.conf.pm.plugin-rclone-manager.connections(High privilege): Managerclone rcdconnections.
Workflow Integration (rclone-transfer)
All asynchronous sync/copy, sync/move, sync/sync, sync/bisync, operations/copyfile, and operations/movefile operations run through NocoBase Workflow (JOB_STATUS.PENDING + background RcloneJobReconciler calling workflow.resume(job) on completion).
Secondary PostgreSQL data sources
When a resumed transfer runs a transactional Create, Update, or Destroy on a secondary SQL data source, the plugin records the job result in _rclone_wf_tx_ledger in the same transaction as the business write. A worker recovering between the secondary and primary commits uses that result to restore the job.
For a PostgreSQL runtime role with DML privileges only, have the schema owner provision the table once on the secondary database. Replace public with a schema on the runtime role's search path and workflow_role with that role.
CREATE TABLE IF NOT EXISTS public._rclone_wf_tx_ledger (
step_key VARCHAR(255) PRIMARY KEY,
payload TEXT NOT NULL,
created_at BIGINT NOT NULL
);
GRANT USAGE ON SCHEMA public TO workflow_role;
GRANT SELECT, INSERT, DELETE ON public._rclone_wf_tx_ledger TO workflow_role;The plugin checks read and insert access before the first mutation in a transaction. It uses DELETE to clean up ledger entries after the primary commit. Read-only Query nodes can run without this table.
