On 11 May 2018 at 21:34, Saulius Gurklys <[email protected]> wrote:
> Hi Mathieu,
>
> thank you for your answers. Now I have more questions :)
>
> On Friday, May 11, 2018 at 5:48:08 PM UTC+3, mathieu.lonjaret wrote:
>>
>>
>> > Is there a way to search for all "deleted" items?
>>
>> Yes. It should be possible to write a search query that gets all
>> deletion claims. Then to look at the targets of these claims to find
>> out the deleted items. I can look into that later if you want.
>
>
> It would be great if you could look into this.

K, will do.

>>
>> > Is there a way to undelete/restore previously deleted items?
>>
>> Yes. You can either:
>> 1) Delete the claim that is responsible for the initial deletion.
>> Deleting the delete is effectively an undo deletion.
>
>
> How to do that?

With the 'pk-put delete' command.

>> 2) Make a search query for your items to a time predating the
>> deletion. Then you get the state of the system as it was before the
>> deletion, and you can get your items.
>
>
> Could you provide some example(s) of such query?

Ok, I'll look into it. If you're using a Mac, I think there's also a
Mac client that can do that (i.e. give you a view of your whole
Perkeep instance at a point back in time).
Oh, and I forgot, that you can also do it with the FUSE interface
(pk-mount) I think. It allows you to get any file at any given date.

>> > How to permanently purge deleted items?
>>
>> For now, and until garbage collection is implemented, the only way is
>> to manually delete the corresponding blobs from the storage.
>
>
> But that means that it would be necessary to find and many blobs
> as bigger files are split into many blobs. Yes?

Yes, but it's relatively easily to get all the blobs that constitute a
file with a search query. So you could then automate the removal from
that search result.

>> > Maybe there is a document that answers these questions?
>>
>> Aside from https://perkeep.org/doc/schema/delete ,  I don't think
>> there is. Contributions are welcome!
>
>
> Thank you,
> --
> Saulius
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Perkeep" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Perkeep" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to