Initial commit on Forgejo
Fresh repository history for elektrine/tarakan hosted at https://git.elektrine.com/elektrine/tarakan.
This commit is contained in:
commit
af6077b9c3
455 changed files with 78366 additions and 0 deletions
23
deploy/systemd/tarakan-backup.service
Normal file
23
deploy/systemd/tarakan-backup.service
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[Unit]
|
||||
Description=Back up Tarakan database and hosted repositories
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=linuxuser
|
||||
Group=linuxuser
|
||||
WorkingDirectory=/opt/tarakan
|
||||
ExecStart=/opt/tarakan/scripts/deploy/backup.sh
|
||||
|
||||
# The backup process only needs its application directory and Docker.
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
# Debian's Docker CLI discovers its Compose plugin through a home-visible path.
|
||||
# Keep home directories immutable while allowing plugin discovery.
|
||||
ProtectHome=read-only
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/opt/tarakan/backups
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue