Changing Storage Directory

Hello!
I recently installed Seafile for the first time and got everything working, however I wanted to change the directory where Seafile stores files that the users upload. I followed the instructions detailed in the Change storage path post from 2021, but when I attempted to reboot seafile and seahub they would not launch and said that the data directory did not exist. The directory I am trying to use is on a different hard drive, if that matters.

OS: Ubuntu 22.04
Seafile Version: 11

The best and easiest way is to move the old folder to the new disk and create a symbolic link at the old place.

Hello!

Is there also a way to only mount the actual folder of the file storage? Since I’ll have multiple GBs of files I want to keep them on my NAS, but keep all the “server files” like logs on the host machine. Also so the logs will not hammer my NAS hard drives all the time.

Mounting /opt/seafile-data to my NAS will include all the logs? So I only want to mount the huge storage. Can I do that by symlinking /opt/seafile-data/seafile/seafile-data/ to an NFS share perhaps? Or will that mess things up?

Thank you!

Edit: It was possible to mount just the seafile-data like this:

services:
  seafile:
    volumes:
      - seafile_shared:/shared
      - seafile_data:/shared/seafile/seafile-data
  # [...]

volumes:
  seafile_data:
    driver: local
    driver_opts:
      type: nfs
      o: nfsvers=4,addr=your-nfs-share-domain.com,rw,soft,nolock
      device: ":/path/to/nfs/server/seafile-data"
  seafile_shared:
    name: "seafile_shared"
  # [...]

Thank you! I got it sorted by remounting the drive at /opt/seafile/seafile-data, then copying all the files from the old folder into the newly created one. I wasn’t aware of the permissions difference between /opt and /media. Worked like a charm!