Compare commits
	
		
			No commits in common. "3ce2807d9f8f6bb0a087dfb216bf47e980ec7a80" and "8fc701b40e6eac298211e5fb2d656bc9d5cf5381" have entirely different histories.
		
	
	
		
			3ce2807d9f
			...
			8fc701b40e
		
	
		
					 3 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -8,3 +8,4 @@ server=$(jq -r .server_hostname < /etc/backup/config.json)
 | 
				
			||||||
ssh="ssh -o ConnectTimeout=5 backup-receiver@$server"
 | 
					ssh="ssh -o ConnectTimeout=5 backup-receiver@$server"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rsync -av --rsync-path="sudo rsync" "$path/" "backup-receiver@$server:/mnt/backups/$uuid$path/"
 | 
					rsync -av --rsync-path="sudo rsync" "$path/" "backup-receiver@$server:/mnt/backups/$uuid$path/"
 | 
				
			||||||
 | 
					$ssh sudo zfs snap "tank/$uuid/fs@auto-backup_$(date +"%Y-%m-%d_%H:%M:%S")" 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -82,7 +82,6 @@ defaults = {
 | 
				
			||||||
            'command': '/usr/bin/php -f /opt/nextcloud/cron.php',
 | 
					            'command': '/usr/bin/php -f /opt/nextcloud/cron.php',
 | 
				
			||||||
            'when': '*:0/5',
 | 
					            'when': '*:0/5',
 | 
				
			||||||
            'user': 'www-data',
 | 
					            'user': 'www-data',
 | 
				
			||||||
            'kill_mode': 'process',
 | 
					 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        'nextcloud-rescan': {
 | 
					        'nextcloud-rescan': {
 | 
				
			||||||
            'command': '/opt/nextcloud_rescan',
 | 
					            'command': '/opt/nextcloud_rescan',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,8 +40,6 @@ def systemd(metadata):
 | 
				
			||||||
            units[f'{name}.service']['Service']['WorkingDirectory'] = config['working_dir']
 | 
					            units[f'{name}.service']['Service']['WorkingDirectory'] = config['working_dir']
 | 
				
			||||||
        if config.get('success_exit_status'):
 | 
					        if config.get('success_exit_status'):
 | 
				
			||||||
            units[f'{name}.service']['Service']['SuccessExitStatus'] = config['success_exit_status']
 | 
					            units[f'{name}.service']['Service']['SuccessExitStatus'] = config['success_exit_status']
 | 
				
			||||||
        if config.get('kill_mode'):
 | 
					 | 
				
			||||||
            units[f'{name}.service']['Service']['KillMode'] = config['kill_mode']
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        services[f'{name}.timer'] = {}
 | 
					        services[f'{name}.timer'] = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue