跳到正文
TakoAPI
返回技能列表

restic-home-backup

由 moep90 提供

CLI Utilities
520下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Design, implement, and operate encrypted restic backups for Linux home directories with systemd automation.

描述

该技能的功能

Sets up encrypted, versioned restic backups for a Linux home directory with systemd scheduling, retention policies, and restore validation. Covers repository initialization, credential hardening, prune/check automation, and recovery testing. Changes require explicit confirmation before writing to system paths.

Combines restic's deduplication and encryption with systemd timers and a validated restore step, which most manual backup guides omit.

何时使用

  • Set up daily automated backups of home directory to an S3 bucket
  • Configure weekly prune and monthly integrity check schedules
  • Restore files from a specific snapshot to a temporary directory
  • Harden backup credentials with restricted file permissions
  • Troubleshoot a failed backup due to wrong password or unreachable repo

示例工作流

输入

User asks: set up encrypted daily backups of my home directory to an SFTP server with 7-day/4-week/12-month retention

智能体
  1. 1

    Collect source path, SFTP endpoint, retention policy, and schedule from user

  2. 2

    Generate /etc/restic-home.env with restricted permissions and backup/prune/check scripts under /usr/local/bin

  3. 3

    Create systemd service and timer units for backup, prune, and check jobs

  4. 4

    Initialize the restic repository and run an immediate backup, then list snapshots to confirm

  5. 5

    Run a restore smoke test to a temporary directory and report exit status

输出

Fully configured restic setup with systemd timers active, one verified snapshot, and a restore smoke test confirming recovery works

前置要求

  • restic binary installed on the system
  • SFTP, S3, Backblaze B2, or local disk repository endpoint and credentials
  • RESTIC_PASSWORD or path to a password file for repository encryption

安装

clawhub install moep90/restic-home-backup

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接