Can I relocate /Seafile/.seafile-data on ubuntu client?

Hi, I’m experimenting with seafile to replace an existing owncloud system. So far so good, but I have a few questions.

On the ubuntu desktop client seafile seems to put its configuration data into 2 directories:

  • /home/(user)/.ccnet/…
  • /home/(user)/Seafile/.seafile-data/…

Is there any way to relocate the .seafile-data directory? I have tried various things to move it like below but have not been able to make it work.

  • /home/(user)/.seafile-data/…

This is not urgent, it is just a matter of neatness for my file naming conventions. All of my libraries are outside of the /Seafile directory so it is really not useful.

My ideal setup would look like:

  • /home/(user)/.ccnet/…
  • /home/(user)/.seafile-data/…
  • /home/(user)/Library1/…
  • /home/(user)/Library2/…
  • /home/(user)/OtherFiles/…
  • … etc

I had a similar but different situation. The first time I installed seafile client and it prompted me for a new seafile directory I, of course, didn’t understand how it was going to work, so I set the directory to somewhere nested under my Documents folder for testing (the rational being that I wanted to put a subset of documents in it). Later when I wanted to add my whole documents folder, seafile server kept refusing to let me with an obscure (to me) message about a library not being allowed to contain the system directory, or something like that. I had by that time actually forgotten about the folder installed down there, as I did not use the default library that was also under there. Finally tracked it all down… and figured out it worked and how to move it. And so, at long last, I come to my advice for you!

You’ll find the .seafile-data directory location defined in /home/(user)/.ccnet/seafile.ini

I imagine you could just change that definition, but I haven’t actually tried it. Let us know! I didn’t figure out where that setting was located until after I got frustrated and wiped out my seafile client installation and reinstalled just to move that directory. If you use this method then when you install just choose something like /home/(user)/.seafile-default under which the .seafile-data will then be created. Your default location for libraries will be there also, but you can override that when chosing sync directories.

Seafile has confusing amount of places for config files. I found: ~/.ccnet/, ~/.config/Seafile/, and also “~/.config/Seafile Clientrc”. And of course (wherever)/.seafile-data/

Good luck.

I had already found the .ini file but got in a mess when trying to use it to move the .seafile-data dir. I had planned a few more experiments but then your message gave me a simpler idea.

I removed the client completely and reinstalled. Then on the 1st login I specified to use folder: /home/(user)/.seafile-config as its base folder. I had to create it 1st of course. Then the client stuck its config files in there out of the way. Simple and easy to replicate on other clients.

I just tried stopping the Seafile client, moving the .seafile-data directory, changing the entry in seafile.ini and it worked. Thanks!

2 Likes