소스 검색

Add restic backup service config

master
Wouter Horlings 4 년 전
부모
커밋
1d66461b3f
1개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. +18
    -0
      restic-backup.service

+ 18
- 0
restic-backup.service 파일 보기

@@ -0,0 +1,18 @@
[Unit]
Description=Make a backup of the system using Restic
After=syslog.target
After=network.target

[Service]
Type=simple
DynamicUser=true
StateDirectory=restic
CacheDirectory=restic
Environment=RESTIC_REPOSITORY_FILE=/var/lib/restic/rest-server RESTIC_PASSWORD_FILE=/var/lib/restic/backup-key
ExecStart=restic backup --exclude-file=/var/lib/restic/exclude --cache-dir $CACHE_DIRECTORY /

# Allow Restic to bypass file read permission checks and directory read and execute permission checks
AmbientCapabilities=CAP_DAC_READ_SEARCH

[Install]
WantedBy=multi-user.target

불러오는 중...
취소
저장