https://github.com/foxboron/astu
:skull: Borg Wrapper
https://github.com/foxboron/astu
Last synced: about 1 year ago
JSON representation
:skull: Borg Wrapper
- Host: GitHub
- URL: https://github.com/foxboron/astu
- Owner: Foxboron
- Created: 2016-06-23T16:50:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-28T10:32:00.000Z (over 9 years ago)
- Last Synced: 2025-02-01T11:12:35.031Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```