# Getting Started This guide will walk you through the basic steps to setup a new [Backrest](https://github.com/garethgeorge/backrest) instance. ## Installation Please refer to the GitHub README for platform-specific installation instructions. ## Core Concepts Before diving into configuration, let's understand some key terminology: - **Restic Repository**: The underlying storage location where your backup data is kept. While Backrest manages this for you, understanding this concept allows you to interact directly with your backups using the restic CLI if needed. - **Backrest Repository**: A configuration set that defines: - Where your backup data is stored - Encryption credentials - Backup orchestration settings - Associated hooks and options - **Backup Plan**: A configuration that specifies: - What to backup - When to create snapshots - How long to retain backups - When to run maintenance operations - **Key Operations**: - **Backup**: Creates a new snapshot of your data - **Forget**: Marks old snapshots for deletion (without removing data) - **Prune**: Removes unreferenced data to free up storage space - **Restore**: Retrieves files from a snapshot to your local system ## Initial Setup ::alert{type="info"} After installation, access Backrest at `http://localhost:9898` (or your configured port). You'll need to complete the initial setup process below. :: ### 1. Instance Configuration #### Instance ID - A unique identifier for your Backrest installation - Used to distinguish snapshots from different Backrest instances - **Important**: Cannot be changed after initial setup #### Authentication - Set your username and password during first launch - To reset credentials: delete the `"users"` key from: - Linux/macOS: `~/.config/backrest/config.json` - Windows: `%appdata%\backrest\config.json` - Authentication can be disabled for local installations or when using an authenticating reverse proxy
### 3. Backup Plan Configuration
Create a backup plan by clicking "Add Plan" and configuring these settings:
#### Plan Settings
1. **Plan Name**
- Choose a descriptive, immutable name
- Recommended format: `[storage]-[content]` (e.g., `b2-documents`)
2. **Repository**
- Select your target repository
- Cannot be changed after creation
3. **Backup Configuration**
- **Paths**: Directories/files to backup
- **Excludes**: Patterns or paths to skip (e.g., `*node_modules*`)
4. **Schedule**
Choose one:
- Hourly/daily intervals
- Cron expression (e.g., `0 0 * * *` for daily midnight backups)
- Clock options:
- UTC/Local: Wall-clock time
- Last Run Time: Relative to previous execution
5. **Retention Policy**
Controls snapshot lifecycle:
- **Count-based**: Keep N most recent snapshots
- **Time-based**: Keep snapshots by age (e.g., daily for 7 days, weekly for 4 weeks)
- **None**: Manual retention management
::alert{type="success"}
Success! Now that Backrest is configured, you can sit back and let it manage your backups. Monitor the status of your backups in the UI and restore files from snapshots as needed.
::
::alert{type="warning"}
Make sure to save a copy of your repository credentials and encryption keys (e.g., password) in a safe place. Losing these will prevent you from restoring your data. Consider storing your entire Backrest configuration (typically `~/.config/backrest/config.json`) in a secure location, such as a password manager or encrypted storage.
::