Skip to content

Commit

Permalink
Add more strict ProtectHome to systemd sample configuration.
Browse files Browse the repository at this point in the history
Merge pull request #42 from VTimofeenko/systemd_protecthome
  • Loading branch information
witten authored Oct 11, 2021
2 parents 38e35bd + 6df6176 commit 0a8d4e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sample/systemd/borgmatic.service
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ SystemCallErrorNumber=EPERM
# system read-only be default and uncomment 'ReadWritePaths' for the required write access.
# Add local repositroy paths to the list of 'ReadWritePaths' like '-/mnt/my_backup_drive'.
ProtectSystem=full
# ProtectHome=read-only
# ReadWritePaths=-/root/.config/borg -/root/.cache/borg -/root/.borgmatic
# ReadWritePaths=-/mnt/my_backup_drive
# ReadOnlyPaths=-/var/lib/my_backup_source
# This will mount a tmpfs on top of /root and pass through needed paths
# ProtectHome=tmpfs
# BindPaths=-/root/.cache/borg -/root/.cache/borg -/root/.borgmatic

CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_RAW

Expand Down

0 comments on commit 0a8d4e5

Please sign in to comment.