Google Drive to Nextcloud Migration (experimental)
БесплатноЗапускает вложенные скриптыНе проверенExperimental. Use when migrating Google Drive to Nextcloud.
от 5olid5nake149 установок в других каталогахОб этом скилле
Google Drive → Nextcloud Migration
Automates the Low-tech Lab procedure from "Vers un numérique souverain et résilient" (https://bureau.lowtechlab.org/apps/collectives/p/YmeZCDHbQnXqGEB/Vers-un-numerique-souverain-et-resilient-9/La-migration-des-donnees-713441): rclone copy from Drive to Nextcloud, then server-side cleanup of extensionless files and HEIC images, then an occ rescan. Three control levels: full-auto, granular (per-phase, dry-run, bandwidth/volume caps), and didactic interactive (per-file confirmation). Destructive phases are dry-run by default. Linux-only (GNU stat/find, apt, occ).
Status: EXPERIMENTAL. Logic validated on synthetic test fixtures (40 automated checks: dry-run, apply, interactive, collisions, failed conversions, log triage); not yet run end-to-end on a production migration. Always review the dry-run plan and keep a backup before --apply.
When to Use
- Migrating a Google Drive tree into a self-hosted Nextcloud (YunoHost or bare metal).
- Post-migration cleanup: files without extensions (Nextcloud can't handle them), iPhone .heic images (no preview support).
- Re-parsing an rclone migration log to triage failed files (
--report-only). - Don't use for: Nextcloud→Nextcloud moves, client sync bugs, or Drive takeout imports.
Prerequisites
rcloneon the copy machine;file,heif-convert(Debian:apt install libheif-examples) and PHP occ on the Nextcloud server; bash + coreutils everywhere.- SSH access to the Nextcloud host and its data dir: YunoHost
/home/yunohost.app/nextcloud/data/USER/files, bare metal typically/var/www/nextcloud/data/USER/files(checkdatadirectoryin config.php). - Backup/snapshot of the Nextcloud data dir before bulk renames. Estimate source size with
rclone size gdrive_remote:/FOLDER; keep ≥20% free-space margin on the target.
Credentials policy (ask only if necessary, never in chat)
- Scripts take remote NAMES only — never passwords, tokens or app passwords as arguments. No secret is ever requested or typed in chat.
- Check
rclone listremotesfirst. If both remotes already exist, nothing is asked. Only for a missing remote, have the USER runrclone configthemselves (Drive: interactive OAuth browser flow; Nextcloud: vendornextcloud, WebDAV URLhttps://HOST/remote.php/dav/files/USER/, user + app password created in Nextcloud settings → Security). - The migrate script re-checks remotes before copying and exits with the
rclone confighint if one is missing. If a login form must be driven by the agent, use the credential vault (browser_vault), never typed secrets.
Modes (user control)
- Full-auto:
migrate_gdrive.sh SRC DST LOG_DIR, thenfix_nextcloud_files.sh --apply [--auto-office], then occ scan. Review the error report afterwards. - Granular: run phases separately; copy folder-by-folder via SRC/DST subpaths; preview with
--dry-run(nothing transferred); cap bandwidth with--bwlimit 5M(or timetable"08:00,512k 23:00,off") and volume with--max-transfer 10G; re-triage an existing log with--report-only LOG_DIR; fix script dry-run → review plan →--apply. - Didactic / interactive:
fix_nextcloud_files.sh --interactive(needs a terminal; over SSH usessh -t). Per file:ydo it,nskip,aall remaining suggestions,qquit. Unknown MIME types: thefiledescription is shown and the user types an extension by hand (empty = skip). As the agent in this mode: explain each command before running it, show the dry-run plan, and wait for the user's explicit go before each destructive phase — never chain phases without confirmation.
How to Run
Scripts (Hermes substitutes ${HERMES_SKILL_DIR} with the skill's absolute directory at load time; standalone users: replace it with the folder path):
scripts/migrate_gdrive.sh— phase 1 copy + error reportscripts/fix_nextcloud_files.sh— phase 2 fixes (dry-run by default)
Both are plain bash and also work standalone, without Hermes. Phase 1 runs on the copy machine; phases 2–3 on the Nextcloud server (scp the fix script over first):
terminal(command="scp ${HERMES_SKILL_DIR}/scripts/fix_nextcloud_files.sh user@host:/tmp/")
Phase 1 — copy (long runs: terminal(background=True, notify=True)):
terminal(command="bash ${HERMES_SKILL_DIR}/scripts/migrate_gdrive.sh gdrive_hello:/FOLDER nextcloud_LTL:/Google_Drive/FOLDER ~/migration-logs --exclude '/FOLDER/TO/EXCLUDE'", timeout=600)
# preview / metered-link variants:
# ... --dry-run
# ... --bwlimit 5M --max-transfer 10G
Phase 2 — server-side fixes, INSIDE data/USER/files, as the Nextcloud system user (YunoHost: nextcloud, bare Debian: www-data; yunohost app shell nextcloud gives that shell):
terminal(command="ssh user@host 'cd /home/yunohost.app/nextcloud/data/USER/files && sudo -u nextcloud bash /tmp/fix_nextcloud_files.sh'") # dry-run
terminal(command="ssh user@host 'cd /home/yunohost.app/nextcloud/data/USER/files && sudo -u next
Установить Google Drive to Nextcloud Migration (experimental) в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Google Drive to Nextcloud Migration (experimental)?
Experimental. Use when migrating Google Drive to Nextcloud.
Как установить скилл Google Drive to Nextcloud Migration (experimental)?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Google Drive to Nextcloud Migration (experimental) запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic