#pool #fuse #backuppc

bin+lib backuppc_pool_reader

A Library and CLI for reading BackupPC pool files (contains a FUSE file system to mount the pool)

11 stable releases

2.0.1 Sep 8, 2024
2.0.0 Aug 12, 2024
1.2.2 Jun 2, 2024
1.2.1 May 24, 2024
0.1.0 May 6, 2024

#485 in Filesystem

MIT license

105KB
2K SLoC

BackupPC Pool Reader

BackupPC Pool Reader is a simple tool designed to read the BackupPC pool and list the files in it. This tool is built using Rust, providing efficient and fast performance.

Features

  • Read the BackupPC pool: The tool can access and read the BackupPC pool, providing a list of files within it.
  • Fast and efficient: Built with Rust, this tool provides fast and efficient performance.

Installation

Ensure you have Rust and Cargo installed on your machine. If not, you can install them from here.

For using the library in your project:

cargo add backuppc_pool_reader

For using the tool:

cargo install backuppc_pool_reader

Usage

As a binary

The tool propose the following commands:

The command cat will display the content of a file in the pool.

BPC_TOPDIR=/var/lib/backuppc backuppc_pool_reader cat --host pc-ulrich --number 10 --share /home /ulrich/Downloads/test.txt

The command ls will list the content of a directory in the pool.

BPC_TOPDIR=/var/lib/backuppc backuppc_pool_reader ls pc-ulrich  10 /home /ulrich/Downloads

The command host will list all the hostname

BPC_TOPDIR=/var/lib/backuppc backuppc_pool_reader host

The command backups will list all the backups for a host

BPC_TOPDIR=/var/lib/backuppc backuppc_pool_reader backups pc-ulrich

The command mount will mount the pool in a directory to access to all host, backups and share files:

BPC_TOPDIR=/var/lib/backuppc backuppc_pool_reader mount /tmp/backuppc

Dependencies

~1.3–2.5MB
~38K SLoC