feat: add restic backup plan #11

Merged
jdelpilar merged 8 commits from 10-add-restic-backup-plan into main 2026-07-12 12:01:24 -07:00
8 Commits
Author SHA1 Message Date
Jordan Del Pilar 1aa2185917 update: added backup role variables
Johto Infrastructure Pipeline / Run Ansible Lint (push) Successful in 1m48s
Johto Infrastructure Pipeline / Deploy to Production (push) Has been skipped
added required variables for backup role
2026-07-12 09:17:41 -07:00
Jordan Del Pilar f7f7ec1684 fix: fixed typo in backup path 2026-07-12 09:03:30 -07:00
Jordan Del Pilar e4d0c5e64a feat: added new backup role
Johto Infrastructure Pipeline / Run Ansible Lint (push) Successful in 1m48s
Johto Infrastructure Pipeline / Deploy to Production (push) Has been skipped
added new backup role including tags to playbook.
This new role targets all hosts.
2026-07-11 18:06:44 -07:00
Jordan Del Pilar 08cae9a613 update: added new required variables for backup role
These new varibles cover rclone and restic settings.
2026-07-11 18:05:39 -07:00
Jordan Del Pilar d0b0d66e4b feat: add handlers for background role
Added handlers to reload systemd when new services and timers are created via the backup role.
2026-07-11 18:04:31 -07:00
Jordan Del Pilar 3c55807cd3 feat: add new tasks for backup role
These new tasks prep the system for handling backups via restic with rclone as a backend.
This is the standard layout for all systems at this time.
2026-07-11 18:03:49 -07:00
Jordan Del Pilar 6df632aec0 feat: add base systemd timers
These systemd timers are used to run the backup and prune services on a daily and weekly basis respecfully.
They are intended to be used for all hosts to keep them all on the same schedule.
2026-07-11 18:02:46 -07:00
Jordan Del Pilar 134cf79698 feat: add new templates
Added new templates related to backup tasks

`rclone.conf.j2` - rclone.conf template to set up remotes for restic repos. these are setup specifically for gdrive with a private client id.

`restic-backup.service.j2` and `restic-prune.service.j2` are used to define daily backups and weekly prunes as systemd services respecfully.
2026-07-11 18:02:01 -07:00