Re: Restore in-place
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
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
OpenPGP_signature
(application/pgp-signature, 840 B) - not displayed