Compare commits
2 commits
8fc701b40e
...
3ce2807d9f
Author | SHA1 | Date | |
---|---|---|---|
3ce2807d9f | |||
4663f7632b |
3 changed files with 3 additions and 1 deletions
|
@ -8,4 +8,3 @@ server=$(jq -r .server_hostname < /etc/backup/config.json)
|
|||
ssh="ssh -o ConnectTimeout=5 backup-receiver@$server"
|
||||
|
||||
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,6 +82,7 @@ defaults = {
|
|||
'command': '/usr/bin/php -f /opt/nextcloud/cron.php',
|
||||
'when': '*:0/5',
|
||||
'user': 'www-data',
|
||||
'kill_mode': 'process',
|
||||
},
|
||||
'nextcloud-rescan': {
|
||||
'command': '/opt/nextcloud_rescan',
|
||||
|
|
|
@ -40,6 +40,8 @@ def systemd(metadata):
|
|||
units[f'{name}.service']['Service']['WorkingDirectory'] = config['working_dir']
|
||||
if config.get('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'] = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue