From 9209b847f69041a1c7f2de6d8d8cdd922126d3c7 Mon Sep 17 00:00:00 2001 From: norm Date: Tue, 24 Feb 2026 06:37:37 +0000 Subject: [PATCH] docs: Mention systemd's `ReadWritePaths` setting for the backup dir The systemd unit file uses `ProtectSystem=strict`, which makes almost every directory read-only. This can cause backups to not work, even if the directory is granted the correct permissions and ownership to the `conduwuit` user. The `ReadWritePaths` setting lets you specify which directories are exempt from being made read-only by `ProtectSystem=strict`. --- conduwuit-example.toml | 4 ++++ src/core/config/mod.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index f487d9620..4bbd916c5 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -95,6 +95,10 @@ # engine API. To use this, set a database backup path that continuwuity # can write to. # +# If you are using systemd, you will need to add the path to +# ReadWritePaths in the service file, preferably via a drop-in file +# through `systemctl edit`. +# # For more information, see: # https://continuwuity.org/maintenance.html#backups # diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index 388f769ad..936f57dd5 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -145,6 +145,10 @@ pub struct Config { /// engine API. To use this, set a database backup path that continuwuity /// can write to. /// + /// If you are using systemd, you will need to add the path to + /// ReadWritePaths in the service file, preferably via a drop-in file + /// through `systemctl edit`. + /// /// For more information, see: /// https://continuwuity.org/maintenance.html#backups ///