Configure and manage restic backups including scheduling, verification, and disaster recovery.
Ships in home-lab-developer-tools. 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.
Configure and operate restic-based backups for a Raspberry Pi 5 home lab. Covers repository initialization, backup scripts, systemd timer scheduling, snapshot verification, restore procedures, and retention policy management.
homelab_sshTest)RESTIC_PASSWORD in /etc/restic-env
(or the file named by HOMELAB_RESTIC_ENV_FILE), or a password file named by
HOMELAB_RESTIC_PASSWORD_FILE. The restic tools run under sudo, which drops
RESTIC_* variables from the SSH session.Optional:
Verify connectivity -- call homelab_sshTest.
Check backup status -- call homelab_backupStatus to retrieve the last
backup timestamp, snapshot count, repository size, and any errors from the
most recent run.
Branch based on task:
Setting up a new backup:
restic init --repo <path>/var/lib/docker/volumes//opt/homelab/docker//etc/ (selective)--keep-daily 7 --keep-weekly 4 --keep-monthly 6Verifying backups:
homelab_backupStatus; its first line is OK or STALE based on the
newest snapshot's age (maxAgeHours, default 26)homelab_backupList to confirm recent entries per path or taghomelab_backupCheck to verify repository integrity; pass
readDataSubset (e.g. 5%) to also read part of the data. It takes the
repository lock, so avoid running it during the scheduled backup windowhomelab_backupDiff between the latest snapshots to review changesRunning a manual backup:
homelab_backupRun to trigger an immediate backuphomelab_journalLogs (the restic systemd service/timer unit) if the output needs more detailhomelab_backupStatusRestoring data:
homelab_composeDown (with confirm: true)
to avoid file conflictsrestic restore <snapshot-id> --target <path>homelab_serviceHealth to confirm the service is healthyReport -- summarize backup status, any issues found, and recommendations.
Backup scope -- critical paths to include:
/opt/homelab/docker/ # All compose files and configs
/var/lib/docker/volumes/ # Persistent container data
vaultwarden_data/ # Password vault (critical)
grafana_data/ # Dashboards and settings
adguard_data/ # DNS config and query logs
npm_data/ # Proxy hosts and SSL certs
uptime-kuma_data/ # Monitor configurations
syncthing_data/ # Sync state (not synced files)
prometheus_data/ # Metrics TSDB
Backup exclusions:
/var/lib/docker/overlay2/ -- image layers, reproducible from registry*.log, *.tmp, cache/ directoriesSystemd timer setup:
/etc/systemd/system/restic-backup.timer/etc/systemd/system/restic-backup.service/etc/restic-env (repo URL, password)Retention policy defaults:
restic forget --prune after applying retention changesUser: "When was the last backup?"
Assistant actions:
homelab_sshTesthomelab_backupStatusResponse:
Last backup completed 6 hours ago at 03:02 AM. 47 snapshots in the repository, 12.3 GB total. No errors on last run. Next scheduled backup at 03:00 AM tomorrow.
User: "Restore Vaultwarden from yesterday's backup"
Assistant actions:
homelab_backupStatus to list recent snapshotshomelab_composeDown for the security stack to stop Vaultwardenhomelab_composeUp for the security stackhomelab_serviceHealth for VaultwardenResponse:
Vaultwarden stopped. Restored volume data from snapshot
a3f7c21b(yesterday 03:01 AM). Vaultwarden restarted and is healthy. Verify your vault entries are correct.
| Tool | Purpose |
|---|---|
homelab_sshTest | Validate SSH connectivity |
homelab_backupStatus | OK/STALE verdict and the latest snapshots |
homelab_backupCheck | Verify repository integrity with restic check |
homelab_backupRun | Trigger an immediate backup |
homelab_journalLogs | Review backup service and timer runs and errors |
homelab_composeDown | Stop services before restore operations |
homelab_composeUp | Restart services after restore |
homelab_serviceHealth | Verify service health after restore |
homelab_diskUsage | Check available space for backup storage |
.backup command or
stop the container briefly before snapshotting.restic unlock to clear it, but only after confirming no
backup process is actually running.restic forget marks snapshots for removal but does
not reclaim space. Always run with --prune or run restic prune afterward.homelab_diskUsage. A full disk will crash Docker services.
Prefer remote backup destinations (NAS, S3, B2).RESTIC_REPOSITORY
and RESTIC_PASSWORD (or RESTIC_PASSWORD_FILE). If these are missing, the
backup silently fails. Check the environment file.pi-system-management -- checking disk space before backupsdocker-compose-stacks -- stopping/starting services around restoresservice-monitoring -- alerting on backup failures via Prometheusnetwork-configuration -- network access to remote backup repositoriesWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
22 skills in this plugin
/alerting-rulesWrite Prometheus alerting rules and configure Alertmanager routing for home lab notifications./ansible-workflowsWrite and run Ansible playbooks for multi-node home lab provisioning and configuration management./certificate-managementLet's Encrypt, self-signed certs, renewal automation, NPM cert integration/disaster-recoveryFull Pi disaster recovery -- backup verification, restore workflows, SD card imaging, and migration checklists/dns-managementManage AdGuard Home DNS filtering, blocklists, local DNS records, and query log analysis./docker-compose-stacksManage multi-file Docker Compose deployments on a Raspberry Pi home lab server./home-lab-developer-tools:backup-recoveryfrom home-lab-developer-tools
home-lab-developer-tools@nicu-ai-tools is listed by mascatunike/nicu-ai-tools — review the source before installing
npx claudepluginhub mascatunike/nicu-ai-tools --plugin home-lab-developer-tools