]> 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:06 +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 a81060b46bf51e866cbace0355c3d5b77c76a28b..b1a7162490886d204156015e4e716268157e6899 100644 (file)
@@ -1413,6 +1413,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();