You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1605,7 +1605,7 @@ config file example:
1605
1605
w: *# anyone can upload here
1606
1606
rw: ed # only user "ed" can read-write
1607
1607
flags:
1608
-
e2ds: # filesystem indexing is required for many of these:
1608
+
e2ds # filesystem indexing is required for many of these:
1609
1609
sz: 1k-3m # accept upload only if filesize in this range
1610
1610
df: 4g # free disk space cannot go lower than this
1611
1611
vmaxb: 1g # volume can never exceed 1 GiB
@@ -1662,6 +1662,8 @@ this can instead be kept in a single place using the `--hist` argument, or the `
1662
1662
1663
1663
by default, the per-volume `up2k.db` sqlite3-database for`-e2d` and `-e2t` is stored next to the thumbnails according to the `--hist` option, but the global-option `--dbpath` and/or volflag `dbpath` can be used to put the database somewhere else
1664
1664
1665
+
if your storage backend is unreliable (NFS or bad HDDs), you can specify one or more "landmarks" to look forbefore doing anything database-related. A landmark is a file which is always expected to exist inside the volume. This avoids spurious filesystem rescansin the event of an outage. One line per landmark (see example below)
1666
+
1665
1667
note:
1666
1668
* putting the hist-folders on an SSD is strongly recommended for performance
1667
1669
* markdown edits are always stored in a local`.hist` subdirectory
@@ -1679,6 +1681,8 @@ config file example:
1679
1681
flags:
1680
1682
hist: - # restore the default (/mnt/nas/pics/.hist/)
1681
1683
hist: /mnt/nas/cache/pics/ # can be absolute path
1684
+
landmark: me.jpg # /mnt/nas/pics/me.jpg must be readable to enable db
1685
+
landmark: info/a.txt^=ok # and this textfile must start with "ok"
0 commit comments