forked from lab-cat/server-backup-config
27 lines
533 B
Markdown
27 lines
533 B
Markdown
# AG Server Borgmatic Config
|
|
|
|
Setup with:
|
|
```
|
|
borgmatic rcreate -c ag-backup.yaml -e repokey
|
|
```
|
|
|
|
Backup command:
|
|
```
|
|
borgmatic -c ag-backup.yaml -v 1 --progres --stats
|
|
```
|
|
|
|
For this 'pull method' to work I needed to add the following line to the servers `/etc/sudoers`:
|
|
```
|
|
# Allow /usr/lib/openssh/sftp-server for sshfs mounts as root
|
|
%sudo ALL=(ALL) NOPASSWD: /usr/lib/openssh/sftp-server
|
|
```
|
|
|
|
## Dependencies
|
|
|
|
Backup depends on:
|
|
|
|
- `borgmatic`
|
|
- `sshfs`
|
|
|
|
If you have nix installed, simply run `nix-shell` from this Repository.
|
|
|