• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

rusnapshot Command Examples in Linux

by admin

rusnapshot is a BTRFS snapshotting utility written in Rust. BTRFS (B-Tree File System) is a modern, feature-rich file system that is available on Linux. It is designed to provide advanced features such as snapshots, cloning, and subvolumes, making it well-suited for backup and data protection tasks.

rusnapshot is designed to make it easier to manage BTRFS snapshots by providing a simple and intuitive command-line interface. With rusnapshot, users can create and manage BTRFS snapshots, as well as schedule snapshots to be taken automatically at specified intervals.

Here are some of the features and capabilities of rusnapshot:

  • Snapshot creation and deletion: rusnapshot allows users to create and delete BTRFS snapshots with ease. Users can specify the name of the snapshot, as well as the subvolume or path that they want to create a snapshot of.
  • Snapshot management: rusnapshot provides commands for listing and managing BTRFS snapshots. Users can list all snapshots, show information about a specific snapshot, or delete snapshots that are no longer needed.
  • Snapshot scheduling: rusnapshot makes it easy to schedule BTRFS snapshots to be taken automatically at specified intervals. Users can specify the interval at which they want to take snapshots, as well as the retention policy for old snapshots.
  • Backup and restore: rusnapshot can be used to create backups of BTRFS subvolumes or paths, which can be stored on local or remote storage devices. Users can also restore backups from these devices using rusnapshot.

rusnapshot Command Examples

1. Create a snapshot using a config file:

# rusnapshot --config {{path/to/config.toml}} --cr

2. List created snapshots:

# rusnapshot -c {{path/to/config.toml}} --list

3. Delete a snapshot by ID or the name of the snapshot:

# rusnapshot -c {{path/to/config.toml}} --del --id{{snapshot_id}}

4. Delete all hourly snapshots:

# rusnapshot -c {{path/to/config.toml}} --list --keep{{0}} --clean --kind {{hourly}}

5. Create a read-write snapshot:

# rusnapshot -c {{path/to/config.toml}} --cr --rw

6. Restore a snapshot:

# rusnapshot -c {{path/to/config.toml}} --id{{snapshot_id}} --restore

Summary

Overall, rusnapshot is a useful tool for managing BTRFS snapshots and simplifying the process of data protection and backup on Linux systems. Its simple command-line interface and powerful features make it well-suited for both casual and advanced users. More information about rusnapshot, including installation instructions and usage examples, can be found on its GitHub repository at https://github.com/Edu4rdSHL/rusnapshot.

Filed Under: Linux

Some more articles you might also be interested in …

  1. numactl Command Examples in Linux
  2. laydown Command Examples
  3. gh run: View, run and watch recent GitHub Actions workflow runs
  4. dolt status: Display the status of the database session
  5. getcap: command not found
  6. hostnamectl: command not found
  7. grep Command Examples in Linux (Cheat Sheet)
  8. iverilog Command Examples
  9. CentOS / RedHat : Beginners guide to log file administration
  10. LVM error “WARNING: Inconsistent metadata found” – How to resolve in CentOS / RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright