[tracker/rss-enclosures] libtracker-data: Add ontology journal file to backup



commit 7f000ff25b32dd04009aeaf7c25aec96d24bfb6d
Author: Jürg Billeter <j bitron ch>
Date:   Wed Oct 13 14:06:08 2010 +0200

    libtracker-data: Add ontology journal file to backup

 src/libtracker-data/tracker-data-backup.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-backup.c b/src/libtracker-data/tracker-data-backup.c
index 3f1042c..d86be0d 100644
--- a/src/libtracker-data/tracker-data-backup.c
+++ b/src/libtracker-data/tracker-data-backup.c
@@ -259,7 +259,7 @@ tracker_data_backup_save (GFile *destination,
 
 	g_dir_close (journal_dir);
 
-	argv = g_new0 (gchar*, files->len + 7);
+	argv = g_new0 (gchar*, files->len + 8);
 
 	argv[0] = g_strdup ("tar");
 	argv[1] = g_strdup ("-zcf");
@@ -267,9 +267,10 @@ tracker_data_backup_save (GFile *destination,
 	argv[3] = g_strdup ("-C");
 	argv[4] = directory;
 	argv[5] = g_strdup (TRACKER_DB_JOURNAL_FILENAME);
+	argv[6] = g_strdup (TRACKER_DB_JOURNAL_ONTOLOGY_FILENAME);
 
 	for (i = 0; i < files->len; i++) {
-		argv[i+6] = g_ptr_array_index (files, i);
+		argv[i+7] = g_ptr_array_index (files, i);
 	}
 
 	/* It's fine to untar this asynchronous: the journal replay code can or



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]