Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 930 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 930 Bytes

System Scripts

This repository contains various utility scripts for managing and maintaining a Linux environment.

Scripts Overview

backup.sh

A wrapper for BorgBackup that automates local backups of critical system and user directories.

  • Targets: /etc, /home/angel, /root
  • Features:
    • Zstandard compression (zstd)
    • Automatic backup pruning (keeping weekly, monthly, and yearly archives)
  • Usage: Run periodically to maintain off-site or secondary disk backups. Ensure the backup target is mounted at /mnt before execution.

run-snapshot

A helper script for Snapper to manage BTRFS snapshots of the root filesystem.

  • Commands:
    • create: Takes a new snapshot and prunes old ones.
    • restore: Provides instructions for restoring files using snapper.
  • Usage:
    ./run-snapshot create