blob: aed99a2e1ca5ccae62e879b40a87bd9e361f55f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
[Unit]
Description=Sync local files to S3 using rclone
Wants=s3-syncer.timer
[Service]
Type=oneshot
EnvironmentFile=/etc/s3-syncer/config.env
Environment=RCLONE_TEMP_DIR=/run/s3-syncer/rclone-tmp
ExecStart=/usr/bin/s3-syncer
User=s3-syncer
Group=s3-syncer
StateDirectory=s3-syncer
LogsDirectory=s3-syncer
RuntimeDirectory=s3-syncer
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
NoNewPrivileges=yes
ExecStartPre=/usr/bin/flock -n /run/s3-syncer/s3-syncer.lock -c true
[Install]
WantedBy=multi-user.target
|