Custom Storage Location

I think it would be handy to be able to change the location that Anytype stores it’s content. On some of may machines, I have a small boot drive and then a large “data” drive so it would be beneficial to be able to have Anytype store content on the larger drive.

This could also tie into running the app on a server of sorts and have that cache the content on a data drive to be backed up from there. It could also add opportunities for things like deduplication which can’t be done on system drives (Assuming it won’t mess with any of the IPFS functionality behind the scenes).

I have understand “Anytype stores all information/content locally”,

it would be nice to have a option to choose the location for storing.

(my drive c:\ is not very big)

I second this. Not only is my /C: on a very small ssd- its currently extremely low on free space!

I had the same problem with trilium, and that stopped me from using trilium further… i cant do half of what i wanted to test this way. It will end up limiting my time and uses of anytype (thus my engagement and feedback).

Meanwhile im sitting on 2 free terabytes on another hardrive and free terabites on a external addon.

+1 this would also be helpful If I want to take my entire anytype folder with me or transfer it to another device that is not connected to the Internet.

I havent tested it yet, but theres a trick/workaround ive used in the past- that as far as i know work with any apps: making a junction link.

junction links are sort of special ‘shortcut-like’ for folders that, for any or most apps, is seen as an actual folder. That way the app would read the folder its expecting, find a junction and read its contents normally… meanwhile the junction would be pointing to another location, like a different hard drive.

The easiest way to make junctions on windows (without command prompts) is Link Shell Extension, a free app that can be used to make junctions, hard links and a few more tricks.

if youre on windows:

1- install link shell extension

2- with anytype closed, MOVE/change the folder’s location somewhere else

(better to copy, then rename the folder- just in case it doesnt work so its easier to rename the folder back later)

3- in the new place you moved the folder to, right click on it and choose ‘pick link source’ (its a new option to right clicking that link shell extension adds to windows explorer)

4- go back to where anytypes folder was meant to be(its original place), right click anywhere on the folder (its white area) and choose ‘paste link as’ -> ‘junction’

And thats it. A folder with the same name will appear, probably with an overlay arrow icon.

Now launch anytype and see if that works- if it will open normally… then check on the folder, to see if it created a new data folder or not. If not its working- reading the junction despite the files being in another drive.

Of course when using junctions DONT change the folders location- that would be like moving/deleting the folder, and will break the junction link.

I only know how to do it on windows, but junctions can also be created on linux (and i presume on mac, since its unix based)

+1 all the way.

@div3xi

I definitely need to be able to do this too!

Personal backup would be so much easier if the data folder could be changed, whenever and wherever we want.

I think without custom storage location the whole idea is ruined. See Obsidian has vaults that stored where i want to, Eagle.cool lets me make library from folders, Typora and many more. No custom location, no anytype. It is number 1 feature, i don’t understand why it is not made since 2020.

I totally agree with you, but don’t forget that Anytype is only in its alpha stage. Many of us are eager to use it fully, but patience is required. :wink:

This feature is officially planned but as no current ETA. unfortunately, at this time the main way to know what is officially planned is to consult the periodically updated topic about Anytype roadmap.

https://community.anytype.io/t/release-plan-a-general-roadmap-updated-28-jan-2022/1283

Yes, it would be great to use something like - https://www.arweave.org
you only have to pay only one-time fee for 200 years of storage. that would give me more peace of mind for long-term storage

Hello! @Razor

I just noticed that this FR has the implemented tag. :star_struck:
Can I use it now?I am on the pre-release version of 0.38.0.
Are there any tutorials on how to do this?

I am very excited about this. It is one of my most anticipated features.

Thanks for all your hard work. Good-day. :smiling_face_with_three_hearts:

Hello everyone, I hope you are doing well.

I am currently an Obsidian user. There is an important feature that encouraged me to use Obsidian over Anytype.

The feature that I’m looking for is being able to store data related to Obsidian in a custom location.

I figured out that custom storage is planned for Q1 of 2024, and it’s really promising. I’m writing this post to suggest something related to this feature.

The feature that I’m suggesting is that the costume location get implemented in such a way that it can be used in two operating systems (In my case, I have two operating system in one laptop).

Obsidian provides this feature. Imagine I’m using Obsidian on Ubuntu. I can choose a folder in my hard disk, and it would become the place where my data would be stored. Then, I can restart and boot into Windows, and open Obsidian version of Windows, and choose that folder. All the data would be available to be read and written in Windows too, without need of Internet or any syncing option. The backward way is also possible.

Another interesting usage could be this: Imagine someone, constancly uses a personal laptop at home and a laptop at universiy. The person now wants to transfer some files. Imagine for some reasons, the person prefers offline solutions. What Obsidian provides is that you can choose files and folders you would like to transfer, and copy and paste them inside an external storage or a USB. Then you can go to the destination operating system and use the folder inside that external storage or USB with Obsidian application. Obsidian write all the configurations inside a folder name “.obsidian”. By opening Obsidian application on any operating systems, the application checks the folder to see if there is a configuration exists in this folder. This is great because you can also share you configurations with others or with ohter systems that you use! And files and data are easy to transfer.

I know that everyone nowdays use online and cloud solutions, but for some people like me in some special countries, where quality of Internet is poor and the price is high, offline solutions are prefered, or at least, I prefer them.

I’m really interested in Anytype project and I’d love to use it as my main note taking and knowledge managment app.

Thank you in advance and best wishes.

I agree especially since it is labeled as local storage. You would assume you would be able to choose where it is stored.

I see some info github hub code page
But I don’t know if it works.

Info: If you want to switch directory where Anytype stores data for now it is available by adding --user-data-dir=“” flag to launch command (i.e. --user-data-dir=“D:\Anytype”).

Where exactly did you find this @SuperYoko ?

The flag is a workaround from Electron. If I’m not mistaken, if you are on Windows, you just need to add something like --user-data-dir="D:\Anytype" to the shorcut you are using to run the app.

github anyproto/anytype-ts main/README.md#running ← Here. I can not use “link”

This feature is currently in experimental state, we did not test it thoroughly enough to release it since in Local only mode moving your data directory results in disability to access your repo since it has moved (logic =)) and we did not implement logic to move your data from one directory to another.

I personally use it for two months already and it works fine for me but I do not use local-only version.