Re: Restore in-place
Matus UHLAR - fantomas <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
On 25.04.21 11:50, Tobias Specht wrote: >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 If you want to store full path of archived files, the best option would be to use: dar -c /var/backup/documents -g /home/tobias/Documents ...unfortunately dar refuses absolute paths: Parse error: Cannot add an absolute path the alternative could be: dar -c /var/backup/documents -R / -g home/tobias/Documents note that when using tar, you have the same issue: tar: Removing leading `/' from member names Note that using absolute paths can be dangerous and that's why tar by defaults prevents that (tar does have -P option), and for dat I guess it's the same. -- Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Spam is for losers who can't get business any other way.