-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBackup.service.example
More file actions
40 lines (38 loc) · 1.38 KB
/
Backup.service.example
File metadata and controls
40 lines (38 loc) · 1.38 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
# /etc/systemd/system/rclone.service
[Unit]
Description=Onedrive (rclone) # Opici
AssertPathIsDirectory=/mnt/rclone/Borg
After=Multimidia.service
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount \
# Location of the rclone.conf file
--config=/path/user/rclone.conf \
# This is to allow users who are not the user running rclone to access the mount
--allow-other \
# The local disk used for cache
--cache-dir=/tmp/rclone/vfs \
# Do not update the destination mod-time if files are identical
--no-modtime \
# Interval between printing stats, e.g. 500ms, 60s, 5m (0 to disable) (default 1m0s)
--stats=0 \
# This sets a per file bandwidth control and I limit this to a bit higher than my highest bitrate I would like to play back
--bwlimit=30M \
# Time to cache directory entries for
--dir-cache-time=120m \
# This is used to cache files on the local disk for streaming
--vfs-cache-mode full \
# This limits the cache size to the value below
--vfs-cache-max-size 20G \
# Set the user agent to a specific string
--user-agent "ISV|rclone.org|rclone/v1.62.2" \
# Do not create Onedrive Business versions
--onedrive-no-versions \
# Set the tpslimit
--tpslimit 4 \
--cache-info-age=60m Borg:/ /mnt/rclone/Borg
ExecStop=/bin/fusermount -u /mnt/rclone/Borg
Restart=always
RestartSec=10
[Install]
WantedBy=default.target