/opscrew:opscrew-snapshotsfrom opscrew
Manages OpsCrew app data snapshots: lists existing snapshots, guides users through taking backups before risky changes, restoring data, deleting snapshots, scheduling backups, and creating encrypted off-server copies on Hetzner, DigitalOcean, Contabo, or OVHcloud.
Ships in opscrew. 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.
A snapshot copies every service of an environment that keeps data (its databases, caches, queues
and search engines, listed under "Taking one") and the app's SQLite files, in one folder named by
its UTC time (20261106T190000Z, its id), with the version that ran recorded beside it. It is
filed where the data lives: on the app's servers (a database on another server keeps its part
there), on this computer, or in the stack's snapshots volume of the user's Portainer.
Only looking happens through a tool. Taking, restoring and deleting a snapshot, and turning the
schedule or the off-server copy on or off, stay in the user's terminal, because each asks for
their approval. Never run them through a tool, never type a confirmation for them, and never pass
--confirm, --approve or --allow-downtime on their behalf.
opscrew_snapshots (read-only, with app and environment when the repository has several).
Each snapshot has its id, kind (by hand, before a release, scheduled, whole server), time, the
version that ran, size, its services (copied, left out or failed), where it is, and whether its
encrypted copy off the server exists. On the user's own server it reads only once the server's
SSH host key was confirmed in a terminal.npx opscrew snapshot list --key-file <age key file> lists them with their details.opscrew_status names the last snapshot with its time and result, and a scheduled snapshot that
failed, with where its log is.The user runs npx opscrew snapshot (add --env <name>, and --app <key> for a further app).
--skip <service> leaves a service out; in a script --allow-downtime approves the stop.The user runs npx opscrew restore <id> with the id opscrew_snapshots shows.
--confirm <app name> with --approve <hash> from an earlier run; never --yes).--only <service> restores one service.npx opscrew rollback --to <that version> --database snapshot.
--allow-other-version restores the data alone; suggest it only when the user knows the schema
didn't change in between.--from offsite --key-file <age key file> restores the encrypted copy off the server (below), for
example onto a new server after the old one was lost: this computer downloads and decrypts it, so
the server never holds the key.npx opscrew snapshot delete <id> removes it for good after the user types its id, with its
encrypted copy off the server. A whole-server snapshot is deleted at its provider.
On a server OpsCrew created at Hetzner, DigitalOcean, Contabo or OVHcloud,
npx opscrew snapshot --server has the provider snapshot the server's whole disk while it runs; a
live snapshot may not be consistent, and --stop shuts the server down for it, after the user
approves that downtime. At Hetzner and DigitalOcean it costs a monthly price (the summary shows
it), and volumes attached to the server are not in it. npx opscrew restore --server <id> rebuilds the server from it in place,
keeping its address, after the user types the server's name; everything written on it since is
lost, and OpsCrew then checks that the app answers. On the user's own server or Portainer
--server is refused: the data snapshot is the one to use there.
On Contabo:
<instance>:<snapshot>; pass it whole.npx opscrew retarget to another provider): take one,
npx opscrew destroy, design and provision the new size, then
npx opscrew restore <id> --from offsite --key-file <path>.On OVHcloud:
npx opscrew destroy leaves them, and they keep billing until the user deletes them in the
control panel (Public Cloud → the project → Compute → Instance Snapshot).npx opscrew snapshot schedule on writes the schedule into the plan: weekly by default
(--every daily|weekly|<n>h), the last 4 kept (--keep <n>), leaving out the services that would
have to stop unless the user names them (--stop <service>). Nothing changes until the user runs
npx opscrew provision, which sets it up on the servers or in the Portainer stack. In Portainer only
the services copied while they run are scheduled. There is no schedule on this computer.
npx opscrew snapshot schedule off and a provision remove it; the snapshots it took stay until
deleted.
A snapshot stays on the machine that holds the data, so it is lost with that machine. The real
backup is the copy off it, with --days <n> to keep each copy other than 90 days:
npx opscrew snapshot offsite on --to r2|hetzner|digitalocean (with --region at Hetzner or
DigitalOcean): a bucket of its own. npx opscrew provision then shows it with its expected
monthly cost for the user's approval by its hash.--to s3 --endpoint https://… --bucket <name> [--region <r>]: the user's own S3-compatible
bucket (Wasabi, Backblaze B2, MinIO, AWS S3, Contabo). OpsCrew prices nothing and never creates
or deletes it; provision asks for its key in the terminal (or OPSCREW_OFFSITE_ACCESS_KEY_ID and
OPSCREW_OFFSITE_SECRET_ACCESS_KEY). Copies go to <app>-<env>/backups/ in the bucket.--to sftp --host <h> [--port <p>] --user <u> --path /<folder>: a folder on the user's own
machine. The user makes an account of its own and a key without a passphrase, puts its public
half in that account's authorized_keys, and sets OPSCREW_OFFSITE_SFTP_KEY to the private key
file. offsite on shows the machine's host key fingerprint to confirm in the terminal (in a
script, --host-key SHA256:…). Copies go to <path>/<app>-<env>/backups/. Restoring or listing
them on this computer needs Docker, whose pinned rclone checks the machine's host key.Each writes the plan. On the user's own storage, provision checks that the server can write and delete a test file there before it stores the deploy secrets, and says what to fix when it can't. From then on every snapshot taken by hand or on the schedule is encrypted on the server to the recovery copy's age key and uploaded.
npx opscrew rotate recovery-key: copies made before stay
readable only with it. Never ask for the key or its file's contents in the chat.--days more.--days. On DigitalOcean
Spaces and the user's own bucket or machine only the server deletes old copies, after each upload.npx opscrew snapshot offsite off stops new uploads. The bucket or folder stays, and its copies
until they expire at Hetzner and R2; elsewhere they stay until the user deletes them. OpsCrew
never deletes them, not even with destroy --delete-data.There is no provider backup there. For data that matters, suggest scheduled snapshots with the
copy off the server, as npx opscrew design and opscrew_advise propose. Backing up the server or
the Portainer host itself stays the user's responsibility.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, RabbitMQ, Kafka, ClickHouse
npx claudepluginhub opscrew-hub/opscrew --plugin opscrew6 skills in this plugin
/opscrew-adaptPrepare the app's code for container deployment the OpsCrew way (production Dockerfile, .dockerignore, health endpoint, port from the environment, secrets moved to environment variables, build settings). Use after OpsCrew's design step, or whenever the user asks to containerize or productionize the app for OpsCrew./opscrew-deployTake the user's app from this repository to a hardened production deployment on their own cloud, a server they already have, a Portainer they already run (on a NAS or any Docker host), a shared hosting account they already pay for (cPanel, Plesk, DirectAdmin or SFTP), or for a site with no server Cloudflare's hosting or GitHub Pages, with OpsCrew (scan, analyze, interview, design, prepare the code, then provision), and turn Portainer on or off. Use when the user wants to deploy, host, launch or "put online" their app, deploy to their own server, home server, NAS, Portainer or shared hosting (cPanel and the like), or move it off Lovable, Bolt, Replit or v0 hosting./opscrew-rotateSee which passwords, keys and tokens OpsCrew made for an app and how old each is (read-only), and guide the user through rotating one in their own terminal with `npx opscrew rotate`, after a leak or when a credential is old. Use when the user asks "rotate my database password", "a secret leaked", "I lost my laptop", "a teammate left", "change the deploy key", "how old are my credentials?", "my token expires", "advise says a credential is old", "replace my Hetzner (or Cloudflare, GitHub) token", or about the recovery copy's key.Other plugins' skills for the same job