> ## Documentation Index
> Fetch the complete documentation index at: https://orphelix.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# orphelix backup

> Create database backup

# orphelix backup

Create a timestamped backup of the Orphelix SQLite database.

## Usage

```bash theme={null}
orphelix backup
```

## Example Output

```bash theme={null}
$ orphelix backup

💾 Creating database backup...

✅ Backup created successfully!
   Location: /Users/username/orphelix-backups/orphelix-backup-2025-11-26-103045.db
   Size: 2.43 MB

💡 Restore with: orphelix restore /Users/username/orphelix-backups/orphelix-backup-2025-11-26-103045.db
```

## Backup Location

Backups are stored in:

```
~/orphelix-backups/
├── orphelix-backup-2025-11-26-103045.db
├── orphelix-backup-2025-11-25-150000.db
├── orphelix-backup-2025-11-24-090000.db
└── ...
```

## Filename Format

```
orphelix-backup-{YYYY}-{MM}-{DD}-{HHMMSS}.db
```

Example: `orphelix-backup-2025-11-26-103045.db`

## What Gets Backed Up

The backup includes all SQLite database tables:

* **user\_settings** - Theme, mode, preferences
* **github\_settings** - GitHub integration config
* **github\_pending\_prs** - Pending pull requests
* **github\_edit\_basket** - Pending file edits
* **cluster\_aliases** - Custom cluster names
* **critical\_issues\_settings** - Monitoring preferences
* **sidebar\_pins** - Navigation customization
* **resource\_metrics\_history** - Historical metrics (if feature enabled)

## Automatic Backups

Backups are automatically created:

* Before running `orphelix update`
* When explicitly requested via this command

## Manual Backup

You can also manually copy the database:

```bash theme={null}
cp orphelix.db ~/my-backups/orphelix-$(date +%Y%m%d).db
```

## Related Commands

* [restore](https://orphelix.mintlify.site/cli/commands/restore.md) - Restore from backup
* [export-config](https://orphelix.mintlify.site/cli/commands/export-config) - Export as JSON
* [import-config](https://orphelix.mintlify.site/cli/commands/import-config) - Import JSON config

## See Also

> [card] [Restore](https://orphelix.mintlify.site/cli/commands/restore.md)
>
> Restore from backup

> [card] [Export Config](https://orphelix.mintlify.site/cli/commands/export-config)
>
> Export configuration as JSON


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.