fearedbliss / bliss-zfs-scripts

ZFS Snapshot & Backup Management Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bliss ZFS Scripts

Jonathan Vasquez (fearedbliss)

Description

This is a collection of scripts that I use to manage my zfs setup at home for both my personal laptop and server. All of the scripts are written in POSIX sh or Rust. I'm primarily using them on FreeBSD.

Customize the scripts to your needs!

Scripts

  1. check_zfs_pool - Checks the pools health. If degraded, it sends you an email.
  2. get_latest_snapshots - Gets just the latest snapshots.
  3. listsnaps - Lists all of the snapshots in the zpool.
  4. safe_cleaner - Wrapper around Honeydew.
  5. tank_snapshot - Wrapper around zfs_snapshot.
  6. tank_backup - Wrapper around Cantaloupe.
  7. zfs_snapshot - Takes a snapshot of a dataset.
  8. zpool_scrub - Scrubs the pool.

Pointers

The following scripts have been rewritten in Rust and are now just pointers to where you can get the new versions.

  1. clean_snapshots - Prints out a message to the new Rust-based cleaner: Honeydew

  2. zfs_backup - Prints out a message to the new Rust-based backup replicator: Cantaloupe

    Note: A label is now mandatory for the Cantaloupe replication format (as it already is for Honeydew). If you were using my zfs_snapshot scripts, this was already occurring, but it is now enforced at the replication tool level. Before, the old zfs_backup Python 3 script had that as an optional argument. If you weren't using labels, make sure to rename your snapshots accordingly.

License

Released under the Simplified BSD License.

Requirements

  • POSIX sh
  • Rust

About

ZFS Snapshot & Backup Management Scripts

License:Other


Languages

Language:Shell 100.0%