Config for File Browser

I am referring to the File Browser blog article.

I would like to change the directory where files will be located (for example to mnt/mycloud in an external HDD mounted via the drive_manager)

As I am a newbie and not confortable with CLI, would you mind give some additionnal guidances from the Changing Data Directory feature.

Is the following code correct and what will be the consequences:

mkdir -p /mnt/mycloud/FilebrowserData
chown dietpi:dietpi /mnt/mycloud/FilebrowserData
chmod 0775 /mnt/mycloud/FilebrowserData

thanks in advance

Not sure what you are aiming for exactly but these 3 lines will

  1. Crate a new director
  2. Change ownership
  3. Set specific permission

In addition I have to change File the Browser configuration as follows:

systemctl stop filebrowser
/opt/filebrowser/filebrowser config set -r /mnt/mycloud/FilebrowserData -d /mnt/mycloud/filebrowser/filebrowser.db
systemctl start filebrowser

at the end should I get a file system for File Browser only on mycloud directory ?

You are using an incorrect location of the configuration file. It’s located at /mnt/dietpi_userdata/filebrowser/filebrowser.db as described on our online docs

Other than that, following your steps, you will lock File Browser to /mnt/mycloud/FilebrowserDat. It’s not able to store data outside of this directory. In File Browser this will be shown as your root directory.

Thanks a lot.

It’s what I expected to restrict data storage only to « mycloud »

Yes, it will set the path what will be shown in file browser to /mnt/mycloud/FilebrowserData but the config file of file browser still remains at /mnt/dietpi_userdata/filebrowser/filebrowser.db.

You could move this config file, but then you would also need to modify the according systemd service, so file browser will load the config from a new path.

The config file remains in user data not in a custom location. Probably a typo?

Yes, copy-and-paste typo, I corrected the post.

1 Like