/rclone-manager:migrate-configfrom rclone-manager
Copy rclone remotes from one machine to another - whole config or picked remotes, merged without clobbering, with home/key-file paths rewritten for the new machine. Use on "copy my rclone setup to my other computer".
Ships in rclone-manager. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
RM="${CLAUDE_PLUGIN_ROOT:-$HOME/.local/share/rclone-manager/plugin}/scripts"
[ -f "$RM/merge_config.py" ] || git clone -q https://github.com/danielrosehill/Rclone-Manager "$HOME/.local/share/rclone-manager/plugin"
Use any one of these:
ssh <host> 'cat "$(rclone config file | tail -1)"' > /tmp/rclone.src.confauto-backup repo: git -C <store> pull, then use
<store>/<source-host>/rclone.conf (for .age, run age -d -i <key> first)Set chmod 600 on the copy and delete it when you are done.
TARGET="$(rclone config file | tail -1)"; touch "$TARGET"
python3 -I "$RM/merge_config.py" /tmp/rclone.src.conf "$TARGET" \
--map /home/<olduser>=/home/<newuser> # repeat --map for each prefix to rewrite
# --only a,b just these remotes
# --replace overwrite remotes that already exist on the target
The script makes no changes until --write is added. Find paths to rewrite
with grep -nE '= */|= *~|[A-Z]:\\' /tmp/rclone.src.conf. Typical ones:
key_file, pubkey_file, known_hosts_file (SFTP);service_account_file (Drive/GCS);local and alias remotes pointing at local folders;/Users/x to Linux /home/x.Check that each rewritten path exists on this machine. Key files themselves are not copied, so tell the user which ones they need to bring across.
Show the plan, get a yes, then run it again with --write. The script saves
a .bak of the target first. It drops comments in the target file.
for r in <migrated remotes>; do timeout 30 rclone lsd "$r:" >/dev/null && echo "OK $r" || echo "FAIL $r"; done
invalid_grant. Run rclone config reconnect <r>:
on the new machine so it has its own token (edit-remote).rclone config encryption) needs its
password, set in RCLONE_CONFIG_PASS, to read it.Mounts are not part of rclone.conf. List the source machine's mounts with
ssh <host> 'ls ~/.config/systemd/user/rclone-mount-*.service', then
recreate each one here with add-mount.
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/add-mountMount an rclone remote as a local folder, one-off or persistent via a systemd user service that starts at login, with sensible VFS cache settings. Use on "mount my Google Drive", "mount S3 at boot"./add-remoteAdd an rclone remote (Google Drive, OneDrive, Dropbox, S3, R2, B2, Wasabi, SFTP, WebDAV, crypt and more) non-interactively, then verify it can list. Use on "add a drive to rclone", "connect rclone to S3"./auto-backupSet up automatic rclone.conf backups - a private git repo (created if missing), a local clone, and a systemd user timer, weekly by default or at the user's chosen frequency. Use on "back up my rclone config automatically".Other plugins' skills for the same job
rclone-manager@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin rclone-manager