mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Removed server_ for better overview
This commit is contained in:
		| @@ -0,0 +1,7 @@ | ||||
| [Unit] | ||||
| Description=pull remote backups | ||||
| OnFailure=systemd-notifier@%n.service | ||||
|  | ||||
| [Service] | ||||
| Type=oneshot | ||||
| ExecStart=/usr/bin/bash {{docker_pull_primary_backups_folder}}pull-remote-backups.sh | ||||
| @@ -0,0 +1,8 @@ | ||||
| #!/bin/bash | ||||
| # Pulls the remote backups from multiple hosts | ||||
| hosts="{{pull_remote_backups}}"; | ||||
| errors=0 | ||||
| for host in $hosts; do | ||||
|   bash {{docker_pull_primary_backups_folder}}pull-remote-backup.sh $host || ((errors+=1)); | ||||
| done; | ||||
| exit $errors; | ||||
| @@ -0,0 +1,10 @@ | ||||
| [Unit] | ||||
| Description=starts pull remote backup timer | ||||
|  | ||||
| [Timer] | ||||
| OnCalendar={{on_calendar_pull_primary_backups}} | ||||
| RandomizedDelaySec={{randomized_delay_sec}} | ||||
| Persistent=false | ||||
|  | ||||
| [Install] | ||||
| WantedBy=timers.target | ||||
		Reference in New Issue
	
	Block a user