Re: remove files from archive

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 01/06/2019 17:55, Matus UHLAR - fantomas wrote:
> Hello,

Hello,

> 
> I have a DAR archive into which some files got that don't belong to
> it. Is is possible to just remove files from the archive?

nop, this is not possible, sorry

> 
> from what I've seen, I could merge one archive into another,
> excluding files, but that's not ideal...

yes, this is the only way to go forward with your need using dar

> 
> I use dar 2.5.8 (from debian package)

For the details:

First, there is no way at system level to remove data from the middle
of a file. What you can do is to copy all data laying after the part
to be removed in order to have it sticked with the part that stay
before the removed part. Then you can truncate the file for it be shorte
r.

So in any case whatever the tool you use, you end up by copying data
and often much more that the amount to be remove.

Dar cannot even do that because file's data is referred in the
catalogue by the position it has in the archive: if you move data, you
have to change index values (data, data CRC, Extended Attributes,
Extended Attributes CRC, FSA, FSA CRC, delta signature, delta
signature CRC, and so on for each give file. And What if you have
slicing? This is even more time consuming as you have to copy data
between slices...  And what if the archive is ciphered? And what if
some on-fly hash file have been computed (--hash option)?

You guessed? The simplest way to do all that is to rebuild an archive
with only the data to be kept, this is exactly what the merging
operation does :)


> 
> thanks


Cheers,
Denis
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAlzy5KEACgkQCDGwvQPY
sYLu2hAAqomL/gq6waTUL0aIZ5xMYoQrSKEkmeExQt4+b3BFWwT0cGhJsSYQ8Nmt
VRs2DXIfN1J4QfiTKrVRJafwdcBzhjLhxkLfWN738zoOpqjUfDt5PbB8EyYv3W+O
3VPQnhwb73i3B/Yocb/pRZktdHszY/YmVSLoJUovpGz2HS3oPDnevovMoz0XNCbz
M8VB2x9K0ipQvvlbu0r4nXkyW0s7sO5yNVEiJ3xsvH4/ruG1ypzKdGEmIHXkq1qo
7s6Qb4PT5KJLnaZnurgVIj2ecKobxwGMWKmn1CrMM+1Vm1LCkJfDiEU1P3vxm6Yj
9XM2O9TMaGAn4LtObZB4fPb/80pkVL2KDEIX0COm9Hw0icXaSsue8RtozslLhu8o
tEDMCOProEzn6b8n5nMNy/YWFgUlxloBi82RjbNpZXG9mxLgYbDbdOps0WL/YGPh
2kAYOvO0oEVqpTqeGo/H7Seun0WmGI8/LgTfSWgUWZHqca5hqQdhyyzr3p2ODG4V
x8IxSGuiTMLy08QQ5uhnY+qE+lQ4yXOD89gaQwykwQFfIqbeYw98pEklg1FBg01g
OGXEdTvT+KHpaFFsYDFaMaM2jLTYTDdG285gsd8KPf4AZKvwy2wcLHpkI/N3PD8D
rItvdLsgOSvWsdstbZ3fdEjVrRN0/0AkoOalv7/+W3Vb4oBm6uc=
=fQl/
-----END PGP SIGNATURE-----
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.