The simplest way to run the app is:
cd /home/chrisf/build/bluevault
cargo runOr if you've already built it in release mode:
./target/release/bdarchiveBefore running, make sure you have the required dependencies installed:
# On Debian/Ubuntu:
sudo apt install xorriso dvd+rw-tools coreutils util-linux
# On Fedora/RHEL:
sudo dnf install xorriso dvd+rw-tools coreutils util-linuxThese are optional but recommended:
# QR code generation
sudo apt install qrencode # or: sudo dnf install qrencode
# Efficient file staging (faster than basic copy)
sudo apt install rsync # or: sudo dnf install rsync
# File manager for folder selection
sudo apt install mc # or: sudo dnf install mccargo runThis will:
- Build the app in debug mode (if needed)
- Run with debug symbols
- Show detailed logging
# Build once:
cargo build --release
# Then run:
./target/release/bdarchiveOr combine:
cargo run --releaseTo see detailed logs:
RUST_LOG=debug cargo run
# or
RUST_LOG=debug ./target/release/bdarchiveLog levels: error, warn, info, debug, trace
On first run, the app will:
- Check dependencies - Will error if required tools are missing
- Create directories:
~/.config/bdarchive/- Configuration files~/.local/share/bdarchive/- Database and data files~/.local/share/bdarchive/logs/- Log files~/.local/share/bdarchive/qrcodes/- Generated QR codes
- Create default config -
~/.config/bdarchive/config.toml - Initialize database -
~/.local/share/bdarchive/archive.db
After first run, you can edit the config file:
nano ~/.config/bdarchive/config.tomlKey settings:
device- Blu-ray device path (default:/dev/sr0)staging_dir- Where ISOs are built (default:/tmp/bdarchive_staging)default_capacity_gb- Disc capacity in GB (25 or 50)verification.auto_verify_after_burn- Auto-verify after burningverification.auto_mount- Auto-mount discs for verification
If you see permission errors accessing /dev/sr0:
# Add yourself to the cdrom group
sudo usermod -a -G cdrom $USER
# Then logout and login again, or:
newgrp cdromIf the app says dependencies are missing, install them:
# The app will tell you which ones are missing
# Then install them with your package manager
sudo apt install xorriso dvd+rw-tools # or equivalentIf the TUI doesn't display correctly:
- Make sure you're running in a terminal (not a file manager)
- Ensure your terminal supports UTF-8
- Try resizing the terminal window
Once running:
- ↑/↓ or j/k - Navigate menus
- Enter - Select/Confirm
- Esc or q - Go back/Quit
- Tab - Switch between input fields (in verify screen)
Logs are automatically written to:
~/.local/share/bdarchive/logs/bdarchive-YYYY-MM-DD.log
View recent logs:
tail -f ~/.local/share/bdarchive/logs/bdarchive-$(date +%Y-%m-%d).logTo install the app system-wide:
# Build release version
cargo build --release
# Install to /usr/local/bin
sudo cp target/release/bdarchive /usr/local/bin/
# Then you can run from anywhere:
bdarchiveThe app doesn't have a built-in dry-run mode yet, but you can:
- Use a test Blu-ray disc or DVD-RW for testing
- Verify the ISO is created correctly before burning
- Check logs for any errors
For actual testing, you might want to add a --dry-run flag in the future that:
- Creates ISO but doesn't burn
- Shows what commands would be run
- Tests the full workflow without disc interaction