Re: Restore in-place

Mihai Moldovan <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
* On 4/26/21 8:10 PM, Tobias Specht wrote:
> 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".

That's essentially the difference between
  tar -caf arch.tar . ; ... ; tar -xaf arch.tar
and
  (cd /; tar -caf arch.tar . ;); ... ; tar -xaf arch.tar -C /
in a manner of speaking.

You could emulate that via setting -R to / and using include and exclude filters
to only backup or extract the data you are actually interested in.

It might not be very convenient, but at least consistent with other tools.



Mihai
OpenPGP_signature (application/pgp-signature, 840 B) - not displayed
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.