An open API service indexing awesome lists of open source software.

https://github.com/foxboron/astu

:skull: Borg Wrapper
https://github.com/foxboron/astu

Last synced: about 1 year ago
JSON representation

:skull: Borg Wrapper

Awesome Lists containing this project

README

          

ASTU
====

The goal of this project is to create a flexible wrapper around borg.

UNDER HEAVY DEVELOPMENT

# Features
* Config file written in yaml
* Hooks for backup preperation and cleanup
* Human readable config (hopefully)
* YAML Anchors support!

### Syntax
```
astu init server
astu backup home server --no-prune
astu prune backup
```

### Config
```yaml
backups:
home:
name: "`hostname`-`date +%Y-%m-%d`"
dir: ~/
options:
- stats
- version
exclude:
- '*/.cache/*'
- '*/.local/*'
- '*/Downloads/*'
- '*/Media/*'
usb:
dir: ~/Media
options:
- stats
- version

repositories:
server:
repository: "user@backupserver.fake:~/backup"
env:
BORG_PASSPHRASE: "hunter2"
prune:
prefix: "`hostname`-"
keep:
daily: 7
weekly: 4
monthly: 6

```

### Hooks
```sh
$ cat ./hooks/home/pre-backup.sh
# Backup pacman package listing
pacman -Q > ~/.package-list

$ cat ./hooks/home/post-backup.sh
rm ~/.package-list
```