تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

restic-home-backup-safe

بواسطة moep90

CLI Utilities
453التنزيلات وفق ما يذكره clawskills.sh
2المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

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

الوصف

ما الذي تفعله هذه المهارة

Sets up encrypted, versioned restic backups of a Linux home directory with systemd scheduling, retention policies, and restore validation. Covers the full lifecycle: repository initialization, automated backup/prune/check jobs, credential hardening, and recovery testing. Targets local disk, SFTP, S3, and Backblaze B2 destinations.

Combines repository initialization, script generation, systemd unit deployment, and restore validation in one workflow rather than requiring the user to wire these together manually.

متى تستخدمها

  • Schedule daily encrypted backups of ~/Documents and ~/Projects
  • Migrate home directory backup from rsync to restic with deduplication
  • Set up weekly prune and monthly integrity checks via systemd timers
  • Test and verify restore from a specific restic snapshot to a temp directory
  • Harden an existing restic setup with proper credential file permissions

مثال على سير العمل

الإدخال

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

الوكيل
  1. 1

    Collects repo endpoint, transport type (sftp), retention policy, and schedule preferences

  2. 2

    Generates /etc/restic-home.env with credentials (chmod 600), backup/prune/check scripts, and systemd service/timer units in plan-only mode

  3. 3

    Runs restic init and an immediate backup after user confirms --apply

  4. 4

    Lists snapshots with restic snapshots and performs a restore smoke test to a temporary directory

  5. 5

    Reports exit status, snapshot ID, and restored file count as completion evidence

الإخراج

Systemd timers active for daily backup, weekly prune, and monthly check; restore smoke test passed; operator runbook delivered

المتطلبات

  • restic binary installed on the Linux system
  • Credentials for the backup destination (SFTP private key, S3 access key and secret, or B2 application key depending on target)
  • clawhub CLI (only if publishing the skill to ClawHub registry)

التثبيت

clawhub install moep90/restic-home-backup-safe

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط