]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add "recordings" to the backup exclude list
authorMichael Marley <michael@michaelmarley.com>
Tue, 6 Feb 2024 21:46:23 +0000 (16:46 -0500)
committerFlole998 <Flole998@users.noreply.github.com>
Wed, 7 Feb 2024 04:57:04 +0000 (05:57 +0100)
Since https://github.com/tvheadend/tvheadend/pull/1540, enabled by
https://github.com/tvheadend/tvheadend/pull/1535 and
https://github.com/tvheadend/tvheadend/pull/1538, we have been
storing the recordings in a subdirectory of the configuration
directory by default.  Because of this, the recordings are getting
stored in the configuration backup.  This causes the backups to
take forever and fill the disk (see
https://github.com/tvheadend/tvheadend/issues/1625).  Instead,
exclude the "recordings" directory from the backup to prevent this.

src/config.c

index dfef3a125ae4bb986772c6289ed9eeba679a7cfe..63ddf77325b2c0873124b17c762aef5b49a02ec6 100644 (file)
@@ -1486,6 +1486,7 @@ dobackup(const char *oldver)
   const char *argv[] = {
     "/usr/bin/tar", "cjf", outfile,
     "--exclude", "backup",
+    "--exclude", "recordings",
     "--exclude", "epggrab/*.sock",
     "--exclude", "timeshift/buffer",
     "--exclude", "imagecache/meta",