Flat extract option
Tobias Specht <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <trinity-13a9d7a6-05bb-4e02-988b-13a68262d93c-1619341495074@3c-app-gmx-bap36> |
Hi Denis, I'm working a little bit on gdar again and I want to add the flat extract option "-f|--flat" of dar. I found the corresponding libdar api archive_options_extract.set_flat and I have a first draft. My question is a little bit more in general about the flat extract option. As far as I understand, the option is meant to extract all files, regardless of the folder structure. Thats useful if I want to restore some files in a different directory, without the whole tree. I was also thinking about the use-case, to extract a whole folder at a different location (without the upper tree structure). For example, we have the following folder structure: / /foo /foo/bar /foo/bar/file1.txt /foo/bar/file2.txt And I want to extract the folder bar/ independently of its parent foo. Is this possible with dar? If not, do you think this would be worth thinking about? Best regards, Tobias