feat: add restic backup plan #10

Closed
opened 2026-07-11 13:25:58 -07:00 by jdelpilar · 0 comments
Owner

Summary

Backups are currently handled by a pretty fragile script. Plan it to set up a more robust backup plan using restic and use a systemd timer to run it automatically.

Context

Backups are required for any proper setup. Without them data lose is bound to happen. Having a proper backup plan in place will help mitigate the risk of data loss in the event of hardware failure, user error or malicious actions

Proposed Changes

  • New backup role that does the following
    • install restic on the target
    • install rclone on the target
    • create rclone.config and require remote
    • creates systemd timer that runs as root to run the backup

Verification Plan

Verification of this will be done by running the playbook with the new role against a test environment. This will verify the playbook itself is working correctly
Once the playbook is confirmed working, a test of the backup itself will be ran by manually trigger the service with systemd to verify end to end.

### Summary Backups are currently handled by a pretty fragile script. Plan it to set up a more robust backup plan using restic and use a systemd timer to run it automatically. ### Context Backups are required for any proper setup. Without them data lose is bound to happen. Having a proper backup plan in place will help mitigate the risk of data loss in the event of hardware failure, user error or malicious actions ### Proposed Changes - [x] New backup role that does the following - [x] install restic on the target - [x] install rclone on the target - [x] create rclone.config and require remote - [x] creates systemd timer that runs as root to run the backup ### Verification Plan Verification of this will be done by running the playbook with the new role against a test environment. This will verify the playbook itself is working correctly Once the playbook is confirmed working, a test of the backup itself will be ran by manually trigger the service with systemd to verify end to end.
jdelpilar added the enhancement label 2026-07-11 15:47:35 -07:00
jdelpilar pinned this 2026-07-11 15:47:45 -07:00
jdelpilar unpinned this 2026-07-12 15:55:56 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jdelpilar/johto-infra#10