Full file index
Orion Poplawski <[email protected]> Fri, 27 Apr 2018 16:31:03 -0600
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
Some thoughts again about capturing a full file index from amgtar: - I'd like to capture the output of tar -cvv in order to compare the contents of two dumps from the index file. - So instead of just the filenames: / /fstab /crypttab /mtab we would have: drwxr-xr-x root/root 0 2018-04-27 16:15 ./ -rw-r--r-- root/root 539 2017-04-13 12:20 ./fstab -rw------- root/root 0 2016-08-22 14:36 ./crypttab lrwxrwxrwx root/root 0 2016-08-22 14:36 ./mtab -> /proc/self/mounts - This presents a couple challenges for amindexd to process the index file: * How to determine the format of the file? A new header line? Looking for a leading "/"? * How to locate the filename in the file? Usernames can have '.' in them so we can't just look for that. Look for ' ./'? The second '/'? - Does anything else parse the index file? - We currently strip the leading '.' from the filenames in the index, but not really sure this is necessary in full index - we have to do a bunch of parsing anyway. - This probably should be optional somehow, not quite sure what semantics to use here. General thoughts about this? -- Orion Poplawski Manager of NWRA Technical Systems 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane [email protected] Boulder, CO 80301 https://www.nwra.com/