Add notifications to gitea and rsync backups
This commit is contained in:
parent
839fa07c5c
commit
055891cfb2
3 changed files with 4 additions and 4 deletions
|
@ -18,11 +18,11 @@ fileignoreconfig:
|
|||
- filename: dotfiles/sudoers.d/protonvpn
|
||||
checksum: 1a86c97a80c2ae3be4d455c4db441d6d2b4d8553784e43646802dd3bf27316ef
|
||||
- filename: dotfiles/systemd_timers/gitea_backup_rsync.service
|
||||
checksum: 64c7accdd31ff2582c0e0f33712d97688eaa674c8fcf85170fbd34998885bfa9
|
||||
checksum: 0d901dda547d466a399dfe978c26f022e869def4737e0c25881137df179be906
|
||||
- filename: dotfiles/systemd_timers/gitea_backup_rsync.timer
|
||||
checksum: f4855fb1215a13edd769476bad90d6a838d5856cc2cf4e75cf537198c1c9e268
|
||||
- filename: dotfiles/systemd_timers/rsync_backup.service
|
||||
checksum: 003ac82ffac85609548db7dac407768f47828a725562c0afba4477e3571ecdd3
|
||||
checksum: 1cf0dc7eea597a66cb2ffcd3549b254a52e7d19fd56e2e9e4c8542049ab9fa5e
|
||||
- filename: dotfiles/systemd_timers/rsync_backup.timer
|
||||
checksum: a50b5d049948c926f0a1de7c53e4a3b5c94dd8a13df03521c086bb9d10bcbee2
|
||||
- filename: dotfiles/zsh/zshenv
|
||||
|
|
|
@ -5,4 +5,4 @@ After=network.target network-online.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=sudo -u flyingscorpio /usr/bin/rsync -zvva --delete tunuifranken.info:/home/git/gitea-dumps /run/media/flyingscorpio/backup/rsync-backups/lime2
|
||||
ExecStart=sudo -u flyingscorpio /usr/bin/rsync -zvva --delete tunuifranken.info:/home/git/gitea-dumps /run/media/flyingscorpio/backup/rsync-backups/lime2 && notify-send GITEA BACKUP: SUCCESS || notify-send GITEA BACKUP: FAILED
|
||||
|
|
|
@ -3,4 +3,4 @@ Description=Backup with rsync daily
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/bin/bash -c 'source /home/*/setup-cockpit/secrets && /home/*/setup-cockpit/rsync_backup.sh'
|
||||
ExecStart=/bin/bash -c 'source /home/*/setup-cockpit/secrets && /home/*/setup-cockpit/rsync_backup.sh' && notify-send RSYNC BACKUP: SUCCESS || RSYNC BACKUP: FAILED
|
||||
|
|
Loading…
Add table
Reference in a new issue