Re: Handling APFS/HFS+
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 02/06/2020 10:38, DiagonalArg wrote: > ---- On Mon, 01 Jun 2020 12:07:37 -0700 Denis Corbin > <[email protected]> wrote ---- > [...] > >>> Could I extract the particular files that may be giving me >>> trouble when I try to restore them to the linux FS and save >>> them to a separate dar archive for later handling, without >>> losing any data? >> >> if you have cannot restore a file and want to keep as much >> information of it in a separated archive, you should use the >> filtering feature (see merging feature) that let you create an >> archive from a subset of a bigger one. This is done without >> restoring the files/directories so you do not depend on the >> operating system to support all data and meta-data associated to >> that file(s). > > Ok, so one of the things I can do with a dar archive containing > HFS+ files, but which I am manipulating on linux, is restore the > files that are not producing errors, but create a new, smaller, > archive containing only the problematic files. you don't need to restore, you'd even better not restoring to preserve at much properties as possible for files that have HFS+ attributes you want to manipulate under linux... the filtering/merging operation has the advantage not to go through local file system, just manipulating data/metadata of one or two archive(s) into a new one while also filtering out the file you don't want to retain. [...] > > But, can I look at the EA's that are not being extracted > (failing), in order to see what they are? Dar should list you the EA that failed to be restored. You can also see the list of EA attached to a file using the -alist-ea option while listing an archive. > > What of a file that has a non-trivial resource fork? Is there any > way for me to look in that fork? Can I extract it from the > archive in some form and dig around in it? Nop, you can just see the name of attributes but not the contents of forks, exactly the same as data of plain file. > > Similar question for any other piece of data that is failing to > restore. dar will try to restore the different part of a file/directory, but if some parts fail (data, attributes, meta-data...) it will just report the failure and the reason of the failure. No, dar will never restore and even not try to restore a failed item into something else, this would just be a non-sense in regard of the purpose of this tool. However, you have several tools that let you access an existing dar archive as a read-only file system. I'm not sure whether you could read all the attributes you expect, but you should give a try. See dar_fuse and AVFS: http://dar.linux.free.fr/doc/presentation.html#external_tools [...] Cheers, Denis -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl7WwSYACgkQCDGwvQPY sYInsRAAv2fZdzaedj8bryAni0WW/EQFbNY4xCg2+S465pichn/507JiIEhdUE3d rfINVmmKu0buYuAR1TtoDbiQon3/xWId0URTGSF+vIcJLRB6zLQJOf5Iyxh6N7nd iZxrejqpGYV8v/O9QsxDs0Fmfkt8r3/ft7InHf2Rku8ktBuY9TBO5VY2YIF/Ig3e 4wS4raCQuPcORDB8+DKIho8KNVN5aFEOM179V5EHGi+ZjY5bXhyDCeojNi8xAenS IpLwOYXMM2mOrF9Qyki+HXCVhPoLOXoexgDNgx9V2dVzvapSFk74UFpUWITKxJzh PPiB5WAxdLMhKlmtwcwf/2dvoQ8CstkDUHyZ9o+akzKnwR+OtMESoW7u7D/0PE6i GM/lT+8KlMyKjyo7kIHHGvXLWH3Hl+VjFZe+SnfxPlHaaY1D6PvL1fDrqk0nr3T9 WS5BIoU7uoO5t6qsFNmB2LuuDS7dDnhgvQm9+CaaGrB3zCxZ5OtDQyWxilEGZt2G 6mdF0jktd6wlv2KPNfGOyknFXfkT/1UkxDezJuz2uRPeH1Sgd09btqMB/gMdTx9C t/oDqJywXQ+7t2UXnxO+cCguJAtXiBeTH/kL7wg0DrNDDEDMlQoto5hNrXYutIOw Ojbr2dQEhcaBvGfAL8aQ1JipqxfE2JZDFzseML6O20i+yQ/d+qk= =2oaq -----END PGP SIGNATURE-----