linux-backup-restore

Automate Linux backup design with encryption, retention, and restore procedures.

3|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/chfle/lehnert-claude-skills --skill linux-backup-restore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: linux-backup-restore
Source: https://github.com/chfle/lehnert-claude-skills/tree/main/skills/linux-backup-restore
Command: npx skills add https://github.com/chfle/lehnert-claude-skills --skill linux-backup-restore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and generate a complete Linux backup solution with encryption, remote storage, retention policies, and restore procedures to protect data and simplify disaster recovery.

Core Features & Use Cases

  • Multi-tool support: Generate and configure backups using Restic, BorgBackup, rsync, or tar+gpg with guided workflows.
  • End-to-end backup lifecycle: Create backup scripts, set up automated scheduling, manage retention, and perform restore tests.
  • Use Case: Safely back up a Linux server, a PostgreSQL database, and Docker volumes to local and remote destinations with 3-2-1 policy.
  • Disaster recovery planning: Provide ready-to-run procedures and scripts to recover from data loss.

Quick Start

Run the generated backup script after completing the environment setup to perform your first backup.

Frequently Asked Questions about linux-backup-restore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Linux server backups with encryption and retention policies?

Automate Linux server backups with encryption and retention by generating provisioning scripts like backup.sh, an environment file, and a README. The solution schedules backups, applies retention policies, and includes test-restore.sh to validate data integrity for disaster recovery.

What is the 3-2-1 backup rule and how do I apply it to Docker volumes and databases?

The 3-2-1 backup rule maintains three data copies on two media types with one off-site. Apply it to Docker volumes and databases by generating scripts that back up to local, remote, and cloud destinations simultaneously, ensuring data survives local hardware failure.

Can I use Restic or BorgBackup to back up PostgreSQL databases to remote storage?

Yes, you can use Restic or BorgBackup to back up PostgreSQL databases to remote storage. The solution supports multi-tool workflows, guiding configuration for encrypted database dumps and transferring them to remote or cloud destinations with automated scheduling.

How do I test restore procedures to verify my Linux backup integrity?

Test restore procedures and verify Linux backup integrity by running the generated test-restore.sh script. This script automates the recovery process from your encrypted backups, validating that data from servers, databases, or Docker volumes can be restored without corruption.

What is the best way to configure encrypted backups for multiple Linux servers?

The best way to configure encrypted backups for multiple Linux servers is using guided workflows for Restic, BorgBackup, rsync, or tar+gpg. The solution generates environment files and provisioning scripts to standardize encryption, scheduling, and retention across all machines.

Does this backup solution work with rsync and tar+gpg for local disk backups?

Yes, this backup solution works with rsync and tar+gpg for local disk backups. It provides guided workflows for these tools alongside Restic and BorgBackup, generating the necessary scripts to automate local data copying with encryption and retention policies.