On Windows, Cryptomator volumes are mounted as network (WebDAV) drives. By default, Recycle Bin is disabled for such drives which means that the files you delete are gone immediately. However, it is possible to enable it using a registry tweak for each vault:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
"RelativePath"="B:\\"
"Category"=dword:00000004
"Name"="BDrive"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
"MaxCapacity"=dword:00000400
"NukeOnDelete"=dword:00000000
Modify the following parts in the sample above to suit your needs:
Generate a unique GUID for each Cryptomator vault.
RelativePath - substitute the letter of your drive here.
MaxCapacity - desired Recycle Bin size in MB (in hexadecimal, e.g. 0x00000400 is 1024)
Deleted files are moved into the $RECYCLE.BIN folder on the same drive so they will still be encrypted.
Modified some parts of the guide and added a batch script, which you can use to automatically enable the Recycle Bin. You only have to enter the drive name of the vault (in your case, fist run Z:\ , second run Y:\ ) and the max capacity of the Recycle Bin (in decimal).
If you want to enable it by hand, you have to create complete new entries. Each vault needs an new GUID:
Replace the 9147E464-33A6-48E2-A3C9-361EFD417DEF with a GUID generated from the tool linked in the guide above. Then create the entries with your generated GUID, insert the values from the guide and you’re done.
I runned the batch script and I think I did it fine.
I restarted my pc.
I erase 1 file in each vault to test but I cannot find the Bin in any of the vault.
I copied it from the link above, changed some parts and tested it and it worked, but can not explain why it worked because the code contains directly after getting the MaxCapacity from the console, errors. The good and the bad is that the script has done nothing…sorry for that .
Wrote an short step-by-step guide, hope it helps but to be honest, it’s not that user friendly^^
We are discussing to integrate an “Windows-Recycle-Bin-enabler” directly into Cryptomator…well see, maybe there is in the future a button to handle that .
“…We are discussing to integrate an “Windows-Recycle-Bin-enabler” directly into Cryptomator…well see, maybe there is in the future a button to handle that.”
I am not an expert, I simply followed the steps described in the Discussion, decribed by mkatsevVR.
Where are you blocked (Which Step ?)
I did an example
My vault is assigned to drive “Y”
When you delete a document from the Vault, the deleted document is moved into the Recycle Bin from the Vault
1 - Vault and its recycle BIN
2 - Folder / File from the vault to be deleted
3 - File is encrypted and moved to the vault (this step and the corresponding encryption process is described into some other discussion from the forum, but I don’t understand the benefit of encrypting the document knowing that you can’t “read” it or restore it and most of it it’s stored in the Vault recycle bin. Therefore, protected by the Vault encryption)
4 - As I said I am not an expert, hence I have simply noticed that the deleted document is also available in the “general” recycle Bin accessible into the Explorer section “Quick Access”
I can see my File name and I can identify the original Driver and most of it, I can restore it !
I tried again manual step by step process to enable recycle bin but nothing happens but worse it blocked some stuff in windows settings and I could not rename folders after fulfilling the steps.
Fortunately I could reverse and erase what was created through the steps.
It is frustrating and a real problem not to have recyclebin enabled to avoid erasing files for ever.
I am now testing cryptomator 1.4 Beta2. Previously I have setup a Recylce Bin using WebDav connection, but now using cryptomator 1.4 Beta2 I can not get the Recylcle Bin to work, using either FUSE or DOKANY. Is it or will it be supported with FUSE or DOKANY connection?
I really like to having a small Recylcle Bin just to catch some accidental deletes which occur every now again.
Under ubuntu, you already have a built in recycle bin (the .Trash directory). I dunno the situation under other linux distros.
For windows, the the dokany project (which cryptomator is using for mounting the vault) has an option for an recycle bin, but currently it is deactivated because it causes some problems. Maybe in the future it is included as an option.
Until then under windows you have to stick with WebDAV or find some way other neat trick to get it working.
I set up correctly before; however it didn’t work after windows 18875 build update.
I tried to set up again and delete old entries; but it didn’t work. Of course, I reboot after edited registers.
After several hours testing, I finally found the solution. You MUST delete old “$RECYCLE.BIN” on the drive of vault( Y: , B: …etc), then mount it again.