File size: 1,359 Bytes
ed69fab
 
 
 
 
 
 
80f373e
 
ed69fab
 
80f373e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: Chat
emoji: πŸ’»
colorFrom: purple
colorTo: red
sdk: docker
pinned: false
app_port: 8080
short_description: Hosted OpenWebUI
---

# OpenWebUI with Data Synchronization

A self-hosted OpenWebUI instance with persistent data.

## Features

- πŸ€– **OpenWebUI Interface**: Full-featured chat interface for AI models
- πŸ”„ **Automated Data Sync**: Automatic backup to GitHub repository every 12 hours
- πŸ”’ **Private Storage**: Secure data storage in your private GitHub repo
- πŸ“Š **Persistent Data**: Never lose your conversations and settings

## Environment Variables

Set these in your Space's Repository secrets:

### Required
- `G_NAME`: Your GitHub repository (e.g., `username/repo-name`)
- `G_TOKEN`: GitHub Personal Access Token with repo access

## Setup Instructions

1. Create a private GitHub repository for data backup
2. Generate a GitHub Personal Access Token with repo permissions
3. Add the environment variables to your Space's Repository secrets
4. Deploy and enjoy persistent OpenWebUI!

## Data Synchronization

The system automatically:
- Syncs every 12 hours (London time)
- Backs up `webui.db` to your GitHub repository
- Creates versioned commits with timestamps
- Handles conflicts and retries on failures

Check out the [configuration reference](https://huggingface.co/docs/hub/spaces-config-reference) for more details.