Skip to main content


Questions about the file storage


!Friendica Admins I am currently using a storage folder to store the media files. My questions are:

  1. Is it better to move to the database for storage?
  2. If I do that, will previous media be migrated to the database?
  3. Where is the path for file storage stored in Friendica (config file?)? I am thinking how can I backup the files too when they are stored in a custom path.

Thanks!

Friendica Admins reshared this.

in reply to Tio

Hello @Tio
1. not sure which is better.
2. No, but there is a migration function in command line console.
3. It is a setting in /admin/storage, the path is always defined, so it already must be valid setting if filesystem is used.
@Tio

Friendica Admins reshared this.

Unknown parent

Roland Häder
@AndiS 🌞🍷🇪🇺 There is also an experimental addon available, that adds a storage engine for #WebDAV , e.g. Nextcloud. Migrating/moving the files to the currently configured storage is done over Shell access: ./bin/console storage move, what I have found so far. But I have never tested it.
in reply to Tio

Thank you all for the answers! So I was wondering if the path is stored in a file that can be read by a script. This way the script can grab the "filepath" when doing the backups. I am using Yunohost and that's how we do for the rest of the services that are using a specific path to store the data/files. I was wondering if this setting in admin/storage is written to an actual file in the friendica's folder?

The WebDav options seems really great. I see this is the addon github.com/friendica/friendica… but I wonder how well it works. Anyone else uses it?

Friendica Admins reshared this.

Unknown parent

Tio
Hmm I see. Thanks a lot. i will have to find a way around it.

Friendica Admins reshared this.