We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

Can you safely delete the /home/nemo/.vault directory ? [answered]

asked 2013-12-25 23:23:42 +0300

kdl gravatar image

This directory takes up 3GB on my Jolla. Can I delete it? I am thinking it is related to backups...

The question has been closed for the following reason "the question is answered, an answer was accepted" by pnuu
close date 2013-12-26 18:13:45.588463

add a comment

1 Answer

Sort by » oldest newest most voted
8

answered 2013-12-26 00:13:40 +0300

Aard gravatar image

updated 2014-01-24 01:52:04 +0300

axaq gravatar image

It contains all your backups. If you delete it you will loose all your backups, but nothing else will happen.

Edit: Please read the comment from @rcasta74 below before deleting the .vault folder! Please have also a look at the comment from @dez in this answer.

link

Comments

will the .vault get recreated? can you take backups after removing that dir?

AL13N ( 2013-12-30 01:52:11 +0300 )
6

If you remove it, you will no more able to run backup gui. To restore it try to executed following command from terminal or ssh session (it worked for me):

the-vault -V /home/nemo/.vault -a init -g "user.name=Happy Sailor,user.email=sailor@jolla.com"

this command creates a folder .vault in your home and creates .git and .vault into it To restore original permissions execute

chmod g-w -R /home/nemo/.vault/

and (as root)

chown -R nemo:privileged /home/nemo/.vault

After that, running backup gui, folder .modules will be created and you will be able to make backups again.

I hope this information is usefull to someone

rcasta74 ( 2014-01-15 22:05:35 +0300 )

Because of some very large files I deleted I had 9GB in .vault. Somehow I couldn't clear it even by deleting the backups. So I deleted the .vault folder. That's where the trouble started. The instructions given above didn't work! There's something wrong about the syntax of it. In particular the-vault cannot parse user.name with spaces. Git can, but it seems the-vault cannot.

So the fix is the-vault --vault=/home/nemo/.vault --action=init --git-config="user.name=Happy_Sailor,user.email=sailor@jolla.com" Then continue with the two other commands

Note the underscore instead of the space. I suppose you can really give any name and email you like. Preferably your own real one. the-vault also allows to pass a global identity with the --global switch.

I'm also curious to know if I could have fixed that .vault space problem in a cleaner way by giving the command 'the-vault --vault=/home/nemo/.vault --action=clear' I did not try it.

DownTwist ( 2015-05-04 18:09:54 +0300 )
add a comment

Question tools

Follow
4 followers

Stats

Asked: 2013-12-25 23:23:42 +0300

Seen: 1,121 times

Last updated: Jan 24 '14