dotfiles/.config/systemd/backup.service.desk

8 lines
225 B
Plaintext

[Unit]
Description=Back up chosto's documents
OnFailure=notify-backup-failure.service
[Service]
Type=oneshot
ExecStart=RESTIC_PASSWORD=$(cat /root/restic) restic -r /backup/restic --verbose backup --exclude '/home/.*' /home