R2

r2-glacier-migration

Manages large-scale data migration from R2 to AWS Glacier, including status monitoring and resumption.

Install

mkdir -p .claude/skills/r2-glacier-migration && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4570" && unzip -o skill.zip -d .claude/skills/r2-glacier-migration && rm skill.zip

Installs to .claude/skills/r2-glacier-migration

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Monitor and manage R2 to AWS Glacier Deep Archive migration. Use when checking transfer status, resuming transfers, or managing the archive migration.
150 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Check migration status
  • View transfer logs
  • Resume interrupted transfers
  • Verify migration checkpoints

How it works

It provides bash commands to interface with a pre-deployed Node.js script on a remote server that manages streaming data transfers.

Inputs & outputs

You give it
Migration status check or resume command
You get back
Transfer logs or status confirmation

When to use r2-glacier-migration

  • Checking migration status
  • Resuming interrupted data transfers
  • Verifying migration checkpoints
  • Managing storage migration logs

About this skill

R2 → AWS Glacier Deep Archive Migration

Migrate ~42.6 TB from Cloudflare R2 to AWS S3 Glacier Deep Archive.

Cost Savings

  • R2: ~$638/month → Glacier: ~$42/month
  • Savings: ~$596/month

Buckets

BucketSizeObjectsStatus
pollinations-text16.96 TB1.86B🔄 In progress
pollinations-images25.64 TB221M⏳ Pending

Quick Commands

Check Status

# Is transfer running?
ssh ninon "screen -ls"

# View recent logs
ssh ninon "tail -50 ~/r2-glacier/transfer-text.log"

# Check checkpoint
ssh ninon "cat /tmp/r2-glacier-pollinations-text-checkpoint.json | jq ."

Attach to Screen (Interactive)

ssh -t ninon "screen -r r2-text"
# Detach: Ctrl+A, D

Resume if Crashed

ssh ninon "screen -dmS r2-text bash -c '~/r2-glacier/run-text-transfer.sh; exec bash'"

File Locations

LocationPathPurpose
Skillscripts/r2-to-glacier-streaming.jsMain transfer script
Skillscripts/package.jsonDependencies
ninon~/r2-glacier/Deployed script + deps
ninon~/r2-glacier/run-text-transfer.shWrapper with credentials
ninon~/r2-glacier/transfer-text.logTransfer log
ninon/tmp/r2-glacier-*-checkpoint.jsonResume checkpoint

Script Usage

# Test (small batch)
node r2-to-glacier-streaming.js -b pollinations-text --batch-size 100 --max-batches 1

# Full transfer
node r2-to-glacier-streaming.js -b pollinations-text --batch-size 50000 --concurrency 30

# Resume after interruption
node r2-to-glacier-streaming.js -b pollinations-text --resume

# Dry run (count only)
node r2-to-glacier-streaming.js -b pollinations-text --dry-run

AWS Setup

  • Bucket: s3://pollinations-archive
  • Region: us-east-1
  • Storage Class: DEEP_ARCHIVE

Verify Archives

aws s3 ls s3://pollinations-archive/ --recursive --human-readable | head -20

Important Notes

  • ⚠️ 180-day minimum on Glacier Deep Archive - don't delete R2 until verified!
  • Some objects fail with "Header overflow" (very large responses) - acceptable loss
  • Text bucket (1.86B objects) takes several days
  • R2 egress is free, AWS ingress is free

Start Images Bucket (After Text Complete)

  1. Update ~/r2-glacier/run-text-transfer.sh on ninon:

    # Change bucket name
    node r2-to-glacier-streaming.js -b pollinations-images --batch-size 50000 --concurrency 30
    
  2. Start new screen:

    ssh ninon "screen -dmS r2-images bash -c '~/r2-glacier/run-images-transfer.sh; exec bash'"
    

Tracking

  • Issue: #5860
  • PR: #5861

When not to use it

  • General file management tasks
  • Non-R2 to Glacier migrations

Prerequisites

Access to ninon serverConfigured transfer scripts

Limitations

  • Some objects may fail due to header overflow

How it compares

It provides a specific interface for managing a large-scale, multi-terabyte cloud storage migration rather than generic file transfer tools.

Compared to similar skills

r2-glacier-migration side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
r2-glacier-migration (this skill)18moReviewAdvanced
agent-workflow-automation46moReviewAdvanced
project-tooling14moCautionBeginner
vibeops01moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry