summary refs log tree commit diff
path: root/config/systemd/user/backup.service
blob: 4aaae0844887d78f797006c3b44b474df9cfdfa1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=backup my home directory

[Service]
Type=oneshot

Environment=RESTIC_REPOSITORY=rest:http://nas.home:8010/
Environment=RESTIC_PASSWORD_FILE=/home/fcuny/.config/restic/password

ExecStart=/usr/bin/restic --tag=home --exclude=/home/fcuny/.cache --exclude=/home/fcuny/.mozilla --exclude=/home/fcuny/media --exclude=/home/fcuny/.config/chromium backup /home/fcuny

[Install]
WantedBy=default.target