13 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
set -exu
 | 
						|
 | 
						|
# FIXME: inelegant
 | 
						|
% if wol_command:
 | 
						|
${wol_command}
 | 
						|
% endif
 | 
						|
 | 
						|
for path in $(jq -r '.paths | .[]' < /etc/backup/config.json)
 | 
						|
do
 | 
						|
  /opt/backup/backup_path "$path"
 | 
						|
done
 |