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
```