Crates.io | backuppc_pool_reader |
lib.rs | backuppc_pool_reader |
version | 2.0.1 |
source | src |
created_at | 2024-05-06 08:15:17.216342 |
updated_at | 2024-09-08 15:19:48.674662 |
description | A Library and CLI for reading BackupPC pool files (contains a FUSE file system to mount the pool) |
homepage | https://gogs.shadoware.org/phoenix/backuppc_pool |
repository | https://gogs.shadoware.org/phoenix/backuppc_pool.git |
max_upload_size | |
id | 1230973 |
size | 127,153 |
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.
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
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