Skip to content
README.md 472 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
# borg-server
Pierre Ozoux's avatar
Pierre Ozoux committed

A borg server for libre.sh.

## Getting started

```
cd /system
git clone https://github.com/indiehosters/borg-server borg-servername
cd borg-servername
Pierre Ozoux's avatar
Pierre Ozoux committed
cp .env.sample .env
Pierre Ozoux's avatar
Pierre Ozoux committed
vi .env #add your ssh public key
Pierre Ozoux's avatar
Pierre Ozoux committed
libre start
Pierre Ozoux's avatar
Pierre Ozoux committed
libre enable
Pierre Ozoux's avatar
Pierre Ozoux committed
```

## List backups

```
docker-compose exec borg bash
cd /backups
borg list my_backup
```

## Restore a backup

```
docker-compose exec borg bash
mkdir destination
cd destination
borg extract /backups/my_backup::ARCHIVE
```