Recent changes to the permissions of /var/log/amanda caused issues with index generation, because xfsrestore would put temporaries there. So instead force xfsrestore to (during index generation) store its temporaries in /var/lib/amanda instead.
13 lines
534 B
Text
13 lines
534 B
Text
diff --git a/client-src/sendbackup-dump.c b/client-src/sendbackup-dump.c
|
|
index 1ff1223..ce0c47d 100644
|
|
--- a/client-src/sendbackup-dump.c
|
|
+++ b/client-src/sendbackup-dump.c
|
|
@@ -292,7 +292,7 @@ start_backup(
|
|
program->backup_name = XFSDUMP;
|
|
program->restore_name = XFSRESTORE;
|
|
|
|
- indexcmd = g_strjoin(NULL, XFSRESTORE, " -t", " -v", " silent", " -",
|
|
+ indexcmd = g_strjoin(NULL, XFSRESTORE, " -a /var/lib/amanda -t", " -v", " silent", " -",
|
|
" 2>/dev/null", " | sed", " -e", " \'s/^/\\//\'", NULL);
|
|
|
|
info_tapeheader(dle);
|