- Description:
- Backup script
- Owner:
- Thomas Böhler
- Last Change:
- Clone URL:
ssh://anonymous@got.wtchr.de:61459/backup.git
Commit Briefs
Print usage on invalid usage (main)
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
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>
Install examples in one call
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Install example files
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Add meson to install files
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Don't quote potentially multiple arguments in var
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Fix spelling of `--keep-monthly`
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Don't print details when running `forget`
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Add README.md
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Initial commit
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
Branches
Tree
| .gitignore | commits | blame |
| README.md | commits | blame |
| examples/ | |
| meson.build | commits | 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 ```
