On Thu, 16 May 2019 22:37:02 -0400 Nathan Stratton Treadway <[email protected]> wrote:
> On Thu, May 16, 2019 at 16:52:57 -0600, Charles Curley wrote: > > * amanda is putting some log files into /var/log/amanda, which seems > > reasonable. But it is also tossing log files > > into /etc/amanda/DailySet1/. /etc should only have configuration > > files in it. > > Which log files are getting put there? The "logdir" setting in > amanda.conf controls where the "amdump.*" and "log.*" files get put, > and seems to default to being under /etc/amanda. > > (I agree with you, and edit my amanda.conf file to set "logdir" to be > "/var/log/amanda/CONFIG" instead.) Yup. -------------------------------------------------- infofile "/etc/amanda/DailySet1/curinfo" # database DIRECTORY logdir "/etc/amanda/DailySet1" # log directory indexdir "/etc/amanda/DailySet1/index" # index directory -------------------------------------------------- So that will want some sed work in the next iteration. But that does not affect my goal. After two amdumps and several amrecovers: -------------------------------------------------- -root@amanda:/etc/amanda/DailySet1# ll -tr total 160 -rw-rw---- 1 amandabackup amandabackup 104 May 14 16:52 disklist -rw-rw---- 1 amandabackup amandabackup 27567 May 14 16:52 amanda.conf -rw------- 1 amandabackup amandabackup 0 May 14 16:52 tapelist.lock drwxr-xr-x 3 amandabackup amandabackup 4096 May 15 14:17 curinfo -rw------- 1 amandabackup amandabackup 26681 May 15 14:17 amdump.20190515141736 drwx------ 2 amandabackup amandabackup 4096 May 15 14:17 oldlog -rw------- 1 amandabackup amandabackup 3328 May 15 14:17 log.20190515141736.0 drwxr-xr-x 3 amandabackup amandabackup 4096 May 15 14:17 index -rw------- 1 amandabackup disk 36 May 15 16:27 log.20190515162732.0 -rw------- 1 amandabackup disk 36 May 15 16:37 log.20190515163745.0 -rw------- 1 amandabackup disk 36 May 15 16:51 log.20190515165145.0 -rw------- 1 amandabackup disk 36 May 15 16:58 log.20190515165811.0 -rw------- 1 amandabackup disk 36 May 16 12:44 log.20190516124426.0 -rw------- 1 amandabackup disk 36 May 16 12:52 log.20190516125204.0 drwxrwx--- 3 amandabackup amandabackup 4096 May 16 13:24 .. lrwxrwxrwx 1 amandabackup amandabackup 20 May 16 13:28 log -> log.20190516132843.0 lrwxrwxrwx 1 amandabackup amandabackup 21 May 16 13:28 amdump.1 -> amdump.20190516132843 lrwxrwxrwx 1 amandabackup amandabackup 5 May 16 13:28 tapelist.last_write -> 16101 -rw------- 1 amandabackup amandabackup 2151 May 16 13:28 tapelist -rw------- 1 amandabackup amandabackup 15 May 16 13:28 command_file -rw------- 1 amandabackup amandabackup 26620 May 16 13:28 amdump.20190516132843 -rw------- 1 amandabackup amandabackup 3736 May 16 13:29 log.20190516132843.0 -rw------- 1 amandabackup disk 36 May 16 14:39 log.20190516143932.0 -rw------- 1 amandabackup disk 36 May 16 14:39 log.20190516143939.0 -rw------- 1 amandabackup disk 36 May 16 14:41 log.20190516144131.0 drwxrwx--- 5 amandabackup amandabackup 4096 May 16 14:41 . root@amanda:/etc/amanda/DailySet1# ------------------------------------------------- -- "When we talk of civilization, we are too apt to limit the meaning of the word to its mere embellishments, such as arts and sciences; but the true distinction between it and barbarism is, that the one presents a state of society under the protection of just and well-administered law, and the other is left to the chance government of brute force." - The Rev. James White, Eighteen Christian Centuries, 1889 Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB https://charlescurley.com
