-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloudsync.conf.example
More file actions
96 lines (77 loc) · 3.9 KB
/
Copy pathloudsync.conf.example
File metadata and controls
96 lines (77 loc) · 3.9 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# loudsync configuration.
#
# Installed to ~/.config/loudsync/loudsync.conf
# This file is sourced by bash, so it is plain KEY="value" lines.
#
# Only LOCAL_DIR and REMOTE are required.
# --- Required ---------------------------------------------------------------
# The local folder to keep in sync. A leading ~ is expanded.
LOCAL_DIR="~/Documents"
# The rclone remote and path, as "remote:path".
# Create it first with: rclone config
# The path does not need to exist yet.
REMOTE="gdrive:LoudSync"
# --- Optional ---------------------------------------------------------------
# Path to the rclone binary. Leave empty to auto-detect (~/.local/bin, /usr/bin,
# /usr/local/bin, then PATH). Worth setting explicitly if you have more than one.
RCLONE_BIN=""
# Extra exclusion rules you maintain by hand. The git repo exclusions are
# generated separately and merged in on every run.
# FILTERS_BASE="${HOME}/.config/loudsync/filters-base.txt"
# Safety brake, as a PERCENTAGE of files (this is how bisync reads it, not as a
# file count). If a run would delete more than this share of either side, it
# aborts and tells you. 50 is rclone's own default.
MAX_DELETE_PERCENT=50
# What wins when the same file changed on both sides since the last run.
# "newer" keeps the most recent and saves the loser next to it with a
# .conflict-local / .conflict-remote suffix. Other values: "older", "larger",
# "smaller", "path1", "path2", "none".
CONFLICT_RESOLVE="newer"
# Don't start a sync while a file was written less than this many seconds ago.
#
# Saving a file while a run is in flight is how you get a conflict with nobody
# on the other end: the run records in its listing the version it saw, uploads
# the version it read a moment later, and on the next pass both sides look
# changed. Waiting for the folder to go quiet removes the common case.
#
# Set to 0 to disable. Excluded directories (git repos, node_modules, caches)
# don't count as activity.
QUIET_SECONDS=15
# ...but never postpone more than this many runs in a row. Something writing
# constantly into the folder must not be able to stop backups indefinitely:
# after this many, the run goes ahead and says so in the log.
MAX_QUIET_SKIPS=5
# Below this gap between the two versions, a conflict is reported as what it
# almost always is — one file saved while a sync was running — instead of
# raising a critical alert. Above it, it's treated as a real divergence and
# alerts. Conflicts are always logged either way.
CONFLICT_RACE_SECONDS=120
# Keep a local copy of files that were overwritten by a change coming down from
# the remote, under ~/.local/state/loudsync/versions/<date>/.
#
# This covers the one case the remote's own history does not: the file that got
# overwritten is your local one. Set to 0 to disable.
KEEP_LOCAL_VERSIONS=1
# How deep to look for .git directories. Raise it if your repos are nested
# deeper than this; every level costs a little time on every run.
MAX_REPO_DEPTH=8
# Consecutive failures before the first desktop alert. With a one-minute timer,
# 3 means "tell me after three minutes of failing", which filters out the blips.
FAIL_THRESHOLD=3
# After the threshold, remind once every N failures, so a persistent problem
# doesn't turn into noise you learn to ignore. 60 = roughly once an hour.
REMIND_EVERY=60
# Seconds the watcher waits after a change before syncing, to group bursts.
WATCH_DEBOUNCE=5
# rclone parallelism. Lower these on a slow link or a low-powered machine.
TRANSFERS=8
CHECKERS=16
# Rotate the log once it grows past this many MB, keeping LOG_KEEP older
# generations as loudsync.log.1, .2, ... A failure that repeats every two
# minutes rewrites the same delta each time and can reach hundreds of MB in a
# couple of days; a log that size is one nobody opens. 0 disables rotation.
LOG_MAX_MB=50
LOG_KEEP=3
# Set to 0 to disable desktop notifications entirely. Not recommended: the
# whole point of this tool is that it tells you when it breaks.
NOTIFY=1