Change path filesystem storage of attachments

  • Used Zammad version: 2.6
  • Operating system: Debian 9

Hi,

is it possible to change the path where attachments were stored if “Filesystem” is choosed for storage mechanism?

I want to install Zammad and all required software on SSD. The attachments should be stored on a HDD.

What is the standard path of the attachments when “Filesystem” is choosed?

Cheers

Christof

The standard path where Zammad stores attachments is /opt/zammad/fs/

There’s no official way to “move” that folder, you could work with symlinks to workaround this.

We have changed the settings from DB to Filesystem and run the command:

irb(main):001:0> Store::File.move(‘DB’, ‘File’)
Moved file 6a0c659bf254b2884d5f0a28bfea4846a1d79ef398b4e23d53148cd4cf0e1e2f from DB to File
Moved file 370e092112204363cb04de4b9420abec3335ec061334f93a99903f3c36b96fbd from DB to File
Moved file 0feb02bd462452a8a5f1e6de93abad19cadc2d8eb7a0ab83f41b1b66f507672c from DB to File

But the directory “/opt/zammad/fs” is still empty.

Any ideas?

Is /opt/zammad/storage/fs/ the correct path?

Ah sorry my bad! You’re right, it’s inside of /opt/zammad/storage/fs/, actually /opt/zammad//fs/ doesn’t even exist :smiley:

Sorry for the confusion!

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.