Re: Flat extract option

Tobias Specht <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <trinity-46691f72-e8c7-449a-8c64-0d815f925d9a-1619459553668@3c-app-gmx-bs30>
Hi Denis,

The use-case I had in mind was, to restore a folder on a different location then it had been when making the backup.
(Maybe you have reworked your folder structure)
This option would give you more flexibility then restoring everything at the location it had been before.
I'm not quite sure how common this use-case is though.
As a workaround you can of course just move the folder after restore.
It would just be more convenient to restore it at the right place in the first way.

Do you see the intention of this option?
Maybe you can set this feature on the "when there is time" list ^^

Best regards,
Tobias 

Gesendet: Sonntag, 25. April 2021 um 22:20 Uhr
Von: "Denis Corbin" <[email protected]>
An: [email protected]
Betreff: Re: [Dar-support] Flat extract option
On 25/04/2021 11:04, Tobias Specht wrote:
> Hi Denis,

Hey Tobias!

>  
> 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.

...more precisely it restores files in the directory pointed to by the
-R option.

> 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?

not actually.

> If not, do you think this would be worth thinking about?

The questions is then why not having saved the data with -R pointing to
foo for the archive to not contain the /foo/ part in any path files?

>
> Best regards,
> Tobias
>
>

Cheers,
Denis
 
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.