https://github.com/ananthb/restic-systemd
Systemd units for restic backups.
https://github.com/ananthb/restic-systemd
Last synced: 4 months ago
JSON representation
Systemd units for restic backups.
- Host: GitHub
- URL: https://github.com/ananthb/restic-systemd
- Owner: ananthb
- License: mit
- Created: 2021-08-14T17:41:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T18:36:30.000Z (almost 4 years ago)
- Last Synced: 2025-03-02T21:32:55.017Z (over 1 year ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# restic-systemd
Systemd units for backing up to restic repositories on a schedule.
## INSTALL
[restic-backup@.timer](./restic-backup@.timer) will run once a day at midnight, and [restic-prune@.timer](./restic-prune@.timer) will run once a month at midnight.
sudo cp restic-* /etc/systemd/system/
sudo systemctl daemon-reload
sudo mkdir /etc/restic
## JOBS
Repeat these steps to setup multiple backup jobs
sudo cp config.template /etc/restic/my-backup # edit this file with your config
sudo systemctl enable restic-backup@my-backup.timer restic-prune@my-backup.timer
## LICENSE
Copyright (c) 2021-22 Ananth Bhaskararaman