add trottle to backups
This commit is contained in:
@@ -72,7 +72,7 @@ services:
|
|||||||
- JELLYFIN_PublishedServerUrl=https://ryantoler.duckdns.org/
|
- JELLYFIN_PublishedServerUrl=https://ryantoler.duckdns.org/
|
||||||
|
|
||||||
jellyseerr:
|
jellyseerr:
|
||||||
image: fallenbagel/jellyseerr:latest
|
image: ghcr.io/seerr-team/seerr:latest
|
||||||
container_name: jellyseerr
|
container_name: jellyseerr
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
- name: Centralized Restic Fleet Backup with Systemd Hooks
|
- name: Centralized Restic Fleet Backup with Systemd Hooks
|
||||||
hosts: app_data,app_docker,home_grail
|
hosts: app_data,app_docker,home_grail
|
||||||
become: true
|
become: true
|
||||||
serial: 5
|
serial: 1
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
# Map of group -> {label, path}. A host can belong to more than one of
|
# Map of group -> {label, path}. A host can belong to more than one of
|
||||||
@@ -55,6 +55,7 @@
|
|||||||
env: *restic_env
|
env: *restic_env
|
||||||
register: restic_unlock_result
|
register: restic_unlock_result
|
||||||
failed_when: restic_unlock_result.status != 0
|
failed_when: restic_unlock_result.status != 0
|
||||||
|
throttle: 1
|
||||||
|
|
||||||
- name: Init restic repo (per target)
|
- name: Init restic repo (per target)
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
@@ -74,6 +75,7 @@
|
|||||||
loop: "{{ backup_targets }}"
|
loop: "{{ backup_targets }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.label }}"
|
label: "{{ item.label }}"
|
||||||
|
throttle: 1
|
||||||
|
|
||||||
- name: Run restic backup (per target)
|
- name: Run restic backup (per target)
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
@@ -95,6 +97,7 @@
|
|||||||
loop: "{{ backup_targets }}"
|
loop: "{{ backup_targets }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.label }}"
|
label: "{{ item.label }}"
|
||||||
|
throttle: 1
|
||||||
|
|
||||||
- name: Show backup output
|
- name: Show backup output
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
@@ -122,6 +125,8 @@
|
|||||||
loop: "{{ backup_targets }}"
|
loop: "{{ backup_targets }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.label }}"
|
label: "{{ item.label }}"
|
||||||
|
throttle: 1
|
||||||
|
|
||||||
always:
|
always:
|
||||||
- name: Ensure the application is started back up
|
- name: Ensure the application is started back up
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|||||||
Reference in New Issue
Block a user