Commit Briefs

c27b8fc3f1 Thomas Böhler

Print usage on invalid usage (main)

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


a4b9289924 Thomas Böhler

Support multiple backup directories

Don't quote the BACKUP_DIRECTORY var in backup() to support giving multiple backup directories instead of limiting this to one. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


d8806afeaf Thomas Böhler

Install examples in one call

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


6c527bf8bc Thomas Böhler

Install example files

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


6c9426334d Thomas Böhler

Add meson to install files

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


cf1036fdfb Thomas Böhler

Don't quote potentially multiple arguments in var

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


f35b9e6833 Thomas Böhler

Fix spelling of `--keep-monthly`

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


5ff105b9ec Thomas Böhler

Don't print details when running `forget`

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


9973306247 Thomas Böhler

Add README.md

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


b5b4cc01a0 Thomas Böhler

Initial commit

Signed-off-by: Thomas Böhler <witcher@wiredspace.de>


Branches

Tags

This repository contains no tags

Tree

.gitignorecommits | blame
README.mdcommits | blame
examples/
meson.buildcommits | blame
restic-backup.sh*commits | blame

README.md

# backup

Back up files to a remote location using [`restic`](https://restic.net/).

## Usage

```sh
restic-backup.sh /path/to/config.sh
```

## Installation

```
meson setup build
cd build
sudo meson install
```

Copy the example `config.sh` to a desired location (i.e.
`/etc/backup/config.sh`). Don't forget to make `config.sh` user-readable only
as it contains sensitive information.

## Modifying the repository

Source `config.sh` in an interactive shell to be able to easily inspect the
repository without giving the repository location or password manually every
time a command is run.

For example, to list all the snapshots stored in the repository:

```sh
source /path/to/config.sh
restic snapshots
```