https://github.com/bebehei/backup-with-restic
A fork of backup-with-borg adapted for restic usage
https://github.com/bebehei/backup-with-restic
restic restic-backups
Last synced: 7 months ago
JSON representation
A fork of backup-with-borg adapted for restic usage
- Host: GitHub
- URL: https://github.com/bebehei/backup-with-restic
- Owner: bebehei
- Created: 2019-07-09T15:03:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T08:57:31.000Z (over 5 years ago)
- Last Synced: 2025-03-06T11:03:27.271Z (7 months ago)
- Topics: restic, restic-backups
- Language: Shell
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# backup-with-restic
Backup tool to create easily repositories with [restic](https://restic.net/).
## Usage
```
backup do-backup
```Create a new snapshot with your current configuration.
```
backup do-forget
```Forget your snapshots according to `KEEP_*` variables in the configuration file.
```
backup (run)
backup
```Create a new snapshot and then delete the repository snapshots. (Wraps `do-backup` and `do-forget`)
### Wrapper
You also can use native `restic` commands like `snapshots` or `mount`. These will respect the exported `RESTIC_*` variables. So a plain `backup snapshots` will list all of your current snapshots in the configured repository.
## Installation
You need to have [restic](https://restic.net) prior to your first run. See [restic's installations instructions](https://restic.readthedocs.io/en/stable/020_installation.html) for details.
# install scripts
git clone https://github.com/bebehei/backup-with-restic
cd backup-with-restic
make install
cp /etc/backup/{example,default}.env# edit default.env to match backup data
$EDITOR /etc/backup/default.env# initialize everything
backup init# add cronjob (for hourly backup)
{ crontab -l ; echo "0 * * * * backup"; } | crontab -**Hint: Depending on your configuration, you may need sudo for some commands.**