Config driven, easy backup cli for restic.
Go to file
Wez Furlong 8a773856de
Improve error handling in install.sh (#404)
Prior to this change, running the example from the docs without root privs produces this misleading/confusing output that claims that the software was installed when it wasn't:

```console
$ wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash
linux
amd64
/usr/local/bin/autorestic.bz2: Permission denied
bzip2: Can't open input file /usr/local/bin/autorestic.bz2: No such file or directory.
chmod: cannot access '/usr/local/bin/autorestic': No such file or directory
bash: line 49: autorestic: command not found
Successfully installed autorestic
```

With this change, the errors stop the script much earlier and produce this output instead:

```
linux
amd64
/usr/local/bin/autorestic.bz2: Permission denied
```
2024-10-21 16:06:49 +02:00
.github chore(CI): add basic CI (build & test) for PRs and master pushes (#396) 2024-09-21 22:55:23 +02:00
build fix build system 2023-03-05 17:22:03 +01:00
cmd fix(unlock cmd): ignore process if its the current id (#360) 2024-03-13 12:39:51 +01:00
docs Update docker.md, fix incorrect location name (#399) 2024-09-27 21:55:02 +02:00
internal fix(cron): crash when errors are encountered during a backup (#403) 2024-10-17 13:49:45 +02:00
.dockerignore docker image 2021-11-20 16:59:13 +01:00
.drone.yml protected drone file 2020-01-23 11:19:16 +01:00
.gitattributes lfs 2021-04-08 21:05:30 +02:00
.gitignore docs 2021-04-12 16:41:46 +02:00
CHANGELOG.md changelog 2023-01-18 22:45:46 +01:00
DEVELOPMENT.md typo 2021-07-11 14:03:04 +02:00
Dockerfile Bump golang from 1.22-alpine to 1.23-alpine (#391) 2024-09-21 22:56:08 +02:00
go.mod Add option to crash autorestic when key is missing instead of generating a new key (#383) 2024-08-28 17:21:01 +02:00
go.sum Add option to crash autorestic when key is missing instead of generating a new key (#383) 2024-08-28 17:21:01 +02:00
install.sh Improve error handling in install.sh (#404) 2024-10-21 16:06:49 +02:00
LICENSE go rewrite 2021-04-09 01:55:10 +02:00
main.go update deps (#353) 2024-02-09 14:18:24 +01:00
README.md Add PreValidate hook (#359) 2024-03-12 15:22:43 +01:00




autorestic logo

Config driven, easy backup cli for restic.
»»» Docs & Getting Started »»»

discord badge contributor badge downloads badge version badge



💭 Why / What?

Autorestic is a wrapper around the amazing restic. While being amazing the restic cli can be a bit overwhelming and difficult to manage if you have many different locations that you want to backup to multiple locations. This utility is aimed at making this easier 🙂.

🌈 Features

  • YAML config files, no CLI
  • Incremental -> Minimal space is used
  • Backup locations to multiple backends
  • Snapshot policies and pruning
  • Fully encrypted
  • Before/after backup hooks
  • Exclude pattern/files
  • Cron jobs for automatic backup
  • Backup & Restore docker volume
  • Generated completions for [bash|zsh|fish|powershell]

Questions / Support

Check the discussions page or join on discord

Contributing / Developing

PRs, feature requests, etc. are welcomed :) Have a look at the dev docs