Re: Restore in-place

Stefan Hammerl via Dar-support <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <CAA27OgTEcOrhOvvf6E=rLCxBZ5JoeMSa443pMSz9J=D3jzFYnQ@mail.gmail.com>
Hi Tobias, Hi Denis,

I see the purpose of this option, Tobias, but I also see problems
coming with it:
1) What to do if the directory does not exist any more? Create it,
ignore the path or fail?
2) The path to the directory to be backed up is somewhat outside the
scope of dar as the backup would become system dependent.

What's your opinion to those issues?

I am also currently writing a GUI for dar so I had the same problem. I
have solved it by saving the path separately. It is of course an extra
file but it is for extra information. Is this an option for you?

Best regards,
Stefan

Am Mo., 26. Apr. 2021 um 20:10 Uhr schrieb Tobias Specht <[email protected]>:
>
> 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.