# Bacula Integration Documentation
## For Calypso Backup Appliance

This directory contains documentation for installing, configuring, and integrating Bacula backup software with the Calypso appliance.

---

## Documents

### Installation
- **BACULA-INSTALLATION.md** - Complete installation guide for Bacula Community edition
  - Manual installation steps
  - Repository configuration
  - Package installation
  - Post-installation setup
  - Integration with Calypso

### Configuration
- **BACULA-CONFIGURATION.md** - Advanced configuration guide
  - Director configuration
  - Storage Daemon configuration
  - File Daemon configuration
  - Job scheduling
  - Integration with Calypso storage

---

## Quick Start

### Installation via Calypso Installer

```bash
# Bacula is included in Calypso installer
sudo ./installer/alpha/install.sh
```

### Manual Installation

See `BACULA-INSTALLATION.md` for detailed steps.

### Basic Configuration

1. Edit `/opt/bacula/etc/bacula-dir.conf`
2. Configure Director, Catalog, Storage, Pool resources
3. Test configuration: `sudo /opt/bacula/bin/bacula-dir -t`
4. Reload: `sudo systemctl restart bacula-dir`

---

## Integration Points

### Database
- Bacula uses PostgreSQL database (can share with Calypso or separate)
- Calypso can query Bacula database directly
- Database name: `bacula` (default)

### Storage
- Bacula can use Calypso-managed ZFS datasets
- Storage location: `/srv/calypso/backups/`
- Integration via Calypso Storage API

### Management
- Calypso API executes bconsole commands
- Job monitoring via Calypso dashboard
- Configuration management via Calypso UI

---

## References

- **Official Bacula Documentation:** https://www.bacula.org/documentation/
- **Bacula Community Installation Guide:** https://www.bacula.org/whitepapers/CommunityInstallationGuide.pdf
- **Bacula Concept Guide:** https://www.bacula.org/whitepapers/ConceptGuide.pdf

---

## Support

For Bacula-specific issues:
- Bacula Community Support: https://www.bacula.org/support
- Bacula Mailing Lists: https://www.bacula.org/community/mailing-lists/

For Calypso integration issues:
- See main Calypso documentation: `docs/alpha/`
- Check Calypso logs: `sudo journalctl -u calypso-api`

