![]() ![]() In ReadAndWrite mode, it's going to write the content to the fallback driver too. It means that over time the old storage will be cleared and all content will be on the new storage. In ReadAndClear mode, it's going to clear the fallback driver content every time an item is moved to the main driver. When reading an item, if the server cannot find it in the filesystem, it will look for it in the database. STORAGE_DRIVER_FALLBACK=Type=Database Mode=ReadAndWriteįrom then on, all new and updated content will be added to the filesystem storage. To migrate from the database to the file system for example, you would set the environment variables like so: STORAGE_DRIVER=Type=File Path=/path/to/dir This is done by providing a fallback driver, which tells the server where to look if a particular item is not yet available on the new storage. Migrating storage is a bit more complicated because the old content will have to be migrated to the new storage. Migrating storage for an existing installation Then all item data will be saved under this /path/to/dir directory. To save to the local filesystem instead, use: STORAGE_DRIVER=Type=File Path=/path/to/dir Setting up storage on a new installationĪgain this is optional - by default items will simply be saved to the database. However since that content can be quite large, you also have the option to store it outside the database by setting the STORAGE_DRIVER environment variable. Feel free to post here if you have any question.īy default, the item contents (notes, tags, etc.) are stored in the database and you don't need to do anything special to get that working. The goal is to reduce the database load, to make it easier to backup and restore the database, and to reduce storage costs (if you're on a managed database instance).Ĭurrently you have the option to save to the local filesystem or to S3. ![]() If anyone's interested I've updated the documentation to explain how to store content outside the database. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |