Re: Restore in-place

Tobias Specht <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <trinity-16e0eda6-4e19-4b95-b8ce-269f75e46575-1619460608056@3c-app-gmx-bs30>
Hi Denis,
 
I think there was a misunderstanding.
My idea was to restore the file at its original location (eg. /home/tobias/Documents/foo/file1.txt),
but without having to specify -R /home/tobias/Documents.
Instead, you would say something like --in-place, or dar would default -R to the source folder of the backup.
This option would also be handy when you browse the archive with a UI.
Then you can restore a file/folder without selecting the target location and just click on "restore".
 
Do you see what I mean?
 
Regarding dar_manager, I thought there would be an option to "save" the -R option and then extract files without having to specify -R again.
But maybe I misunderstood that.
 
Best regards,
Tobias
 
 

Gesendet: Sonntag, 25. April 2021 um 22:28 Uhr
Von: "Denis Corbin" <[email protected]>
An: [email protected]
Betreff: Re: [Dar-support] Restore in-place
On 25/04/2021 11:50, Tobias Specht wrote:
> Hi Denis,

Hi Tobias,

>
> I'm usually doing an "online" backup with dar. This means, I create the
backup while my system is running.
> Example: dar -R /home/tobias/Documents -c /var/backup/documents
>  
> The same does usually also apply, if I want to restore some files from the backup.
> Example: dar -R /home/tobias/Documents -x /var/backup/documents -g foo/file1.txt
>
> In this way, the path where I created the backup from and the path where I want to restore the file are identically.
> From a usability perspective, it would be great, to tell dar to extract
the file foo/file1.txt from the given archive /var/backup/documents "in-place".

I'm not sure to understand: if you want ot have foo/file1.txt and
directory restored in /tmp for example you just have to modify the -R
option accordingly:

dar -R /tmp -x /var/backup/documents -g foo/file1.txt

you will get /tmp/foo/file1.txt and all the directory tree you restored
that were previously located in /home/tobias/Documents would also take
place under /tmp

> This would require dar to save the source path in the archive when creating the backup.
> Is this possible with dar?
> As far as I can see, there is something like that in the dar_manager.

not sure about would you do refer, dar_manager relies on dar to restore
thus this should not be different with dar_manager.

> Do you think, this option would be helpful to have in dar?

I think you can already do this today, as explained above, let me know!

>
> A workaround would be to use the --user-comment option to save the source path.
> But I think this is not an optimal solution.>
> 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.