]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: Exclude timeshift buffer from configuration backup
authorMichael Marley <michael@michaelmarley.com>
Wed, 2 Mar 2016 11:22:12 +0000 (06:22 -0500)
committerJaroslav Kysela <perex@perex.cz>
Sun, 6 Mar 2016 09:07:17 +0000 (10:07 +0100)
This fixes the issue where if TVHeadend was streaming live TV with
timeshift turned on and suffered an unclean shutdown followed
immediately by an upgrade, it would try to put the entire timeshift
buffer into the configuration backup.

src/config.c

index 02c66630f221832c5c013eaff10ec50f82e692c0..ff48a2ca0516eb54cefbee8b8988bd113104fccb 100644 (file)
@@ -1195,6 +1195,7 @@ dobackup(const char *oldver)
   const char *argv[] = {
     "/usr/bin/tar", "cjf", outfile,
     "--exclude", "backup", "--exclude", "epggrab/*.sock",
+    "--exclude", "timeshift/buffer",
     ".", NULL
   };
   const char *root = hts_settings_get_root();