[09/13] gerbera: Add backup definitions

Message ID 20261130154031.269150-10-stefan.schantl@ipfire.org
State New
Headers
Series [01/13] libupnp: New package |

Commit Message

Stefan Schantl 30 Nov 2026, 3:18 p.m. UTC
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 config/backup/includes/gerbera | 2 ++
 lfs/gerbera                    | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 config/backup/includes/gerbera
  

Comments

Michael Tremer 30 Nov 2026, 4:06 p.m. UTC | #1
Hello Stefan,

> +/etc/gerbera/config.xml
> +/var/lib/gerbera/*

See my comment on the config file: the home directory in config.xml is
/var/ipfire/gerbera, so this will not include the database.

Does the database get large (it contains the metadata of the whole media
library)? If so, we might not want to put it in the backup, because it can be
rebuilt by re-scanning.

-Michael
  

Patch

diff --git a/config/backup/includes/gerbera b/config/backup/includes/gerbera
new file mode 100644
index 0000000000..3fb1208fa0
--- /dev/null
+++ b/config/backup/includes/gerbera
@@ -0,0 +1,2 @@ 
+/etc/gerbera/config.xml
+/var/lib/gerbera/*
diff --git a/lfs/gerbera b/lfs/gerbera
index 86b70019db..34041b9a51 100644
--- a/lfs/gerbera
+++ b/lfs/gerbera
@@ -116,8 +116,8 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	$(call INSTALL_INITSCRIPTS,$(SERVICES))
 
 	#install backup definition
-	#install -v -m 644 ${DIR_SRC}/config/backup/includes/minidlna \
-	#		/var/ipfire/backup/addons/includes/minidlna
+	install -v -m 644 ${DIR_SRC}/config/backup/includes/gerbera \
+			/var/ipfire/backup/addons/includes/gerbera
 
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)