Ask / Submit

Deleted backup in settings but remains in ~/.vault taking space

asked 2013-12-30 10:55:08 +0300

mgbler gravatar image

updated 2014-09-29 12:24:14 +0300

Alex gravatar image

I had to remove all unhidden folders by myself (e.g. Phone, People, ...) and delete the contents of ~/.vault/.vault and ~/.vault/.message Is it a bug or doubled security?

Edit: The initial problem was solved manually but the bug remains so I will reopen this question again and waiting for a fix. :) This is an annoying bug which will also accelerate the process of running out of metadata space because you are unable to clean up some GBs through the settings UI...

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted

answered 2013-12-30 13:24:29 +0300

penpen gravatar image

Vault is saving only the differences so if you don't delete all the backups it might still use more space than you would quickly expect.

But you seem to be right that the vault is either not deleting all the materials or it is not running clean or gc (garbage collection) for the backend git repository: I tested by removing some intermediary backups and the drop seems to be only 4 kilobytes per deletion. I would have expected it to be little more than that.

edit flag offensive delete publish link more


ahh, i see, thx for the enlightenment!

mgbler ( 2013-12-30 13:26:45 +0300 )edit

So, .vault is the only folder that Backup creates? ...and if I have removed all the backups, is it safe to remove that folder? Also, if I want to transfer backup(s) to my computer (e.g., if I need to reset the phone), do I need to copy anything else than .vault folder?

Pecosbil ( 2013-12-30 14:06:33 +0300 )edit

I just removed the folders like "Phone", "People" and so on, not ".git" and ".modules" ... i also deleted the files ".vault" and ".messages" but than the backup settings didnt open anymore, so i placed empty versions of them and all worked again

mgbler ( 2013-12-30 14:10:37 +0300 )edit

@Pecosbil: My understanding is that copying the whole .vault directory is enough to transfer the backups but I haven't actually tested it. Remember to check that the destination .vault has .git and other dot directories/files after transferring it.

penpen ( 2013-12-30 15:18:23 +0300 )edit

just git garbage collection will not help, because blobs (not in a git point of view but real ones: pictures etc.) are stored separately inside git storage. Also backup deletion is just a tag removal. So, support for proper garbage collection is in the TODO list. the-vault is FOSS... ;)

dez ( 2013-12-31 08:54:52 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2013-12-30 10:55:08 +0300

Seen: 764 times

Last updated: Sep 29 '14