Closed Meteor0id closed 2 months ago
These are not two variants of the same thing.
--limittothreads(byname)
is a modifier for various export function (like html or txt). This does not alter the actual backup file, it just modifies the behavior of the export. That is ./signalbackup-tools [input] [passhrase] --exporthtml [HTMLDIR] --limittothreads 1,2,3 --output [OUTPUTFILE]
will produce an OUTPUTFILE
identical to the input
.
--croptothreads(byname)
is a top level function (not a modifier of another) and alters the input backup file: signalbackup-tools [input] [passphrase] --croptothreads 1,2,3 -o [OUTPUTFILE]
will generate a new, modified backup file that only contains threads 1, 2 & 3 that can be restored in Signal Android.
Each of these options is mentioned in the README, the former as a modifier to all the options it works with (html, txt, dumpmedia), the latter as one of the two cropping options (the other being --croptodates
, which has its own modifier-counterpart for the export functions named --limittodates
).
I believe this issue can be closed without further action, but let me know if you disagree.
Each of these options is mentioned in the README
thanks for the explanation, but maybe some mention of this difference between modifying/limiting and cropping could be in the readme, since in some cases both options could be used which confused me (but that might just be me)
I've looked at this some more, but I really don't see how I could easily make it more clear than how it's written. The only way to really confuse the two is if one simply guesses their existence or by reading the source code without looking at what they do.
If anyone simply reads the README or the output of -h/--help
(which should be the only way one even learns these options exist), I don't think there should be any confusion.
Thanks!
@bepaald maybe the story privacy (list of excluded contacts) is not affected by cropping, I could test that later. I guess it isn't meant to be affected but in case there is no way to use the tool to affect listed contacts there.
But as you said contacts are complicated and kinda out of scope
@bepaald maybe the story privacy (list of excluded contacts) is not affected by cropping, I could test that later. I guess it isn't meant to be affected but in case there is no way to use the tool to affect listed contacts there.
I've read this a dozen times now, but I'm afraid I don't really understand what you are saying here. I'm probably just dense, but maybe you could clarify?
Just a few remarks that may or may not be relevant:
--listrecipients
will show as display_name = 00000000-0000-0000-0000-000000000000
)distribution_list
and distribution_list_member
tables. The work-around for this, as far as one is needed, is to make sure to remove all recipients of the "my story" posts before cropping. (though in this phrasing I mention contacts listed as receiving the posts in a story, the same thing goes for contacts explicitly excluded from receiving a story's posts, they are still referenced and must be kept in the backup to prevent crashing)Not sure that has anything to do with what you were saying, but there you go :-)
I just realized there are two variants and had not seen any info on the difference. Maybe add something about that in the readme?