Change the file storage location via console

According to the documentation https://docs.zammad.org/en/latest/admin/console/zammad-settings.html#storage-provider-setting it is possible to change the attachment storage from DB to File with:

$ zammad run rails c
>> Store::File.move('DB', 'File', delay_in_sec)

but I’m unable to find out how to change the default location /opt/zammad/storage to another custom path on my local filesystem. Is it possible or do I have to manually lin /opt/zammad/storage to somewhere elese?
According to this old post https://community.zammad.org/t/change-path-filesystem-storage-of-attachments/1569 it is not possible, is this still the case?

Hi, what you can do is either use a soft-link to a different directory

Since I installed on a VM, I created a dedicated disk for the attachments and mounted it to the /opt/zammad/storage directory

Thanks @skip, I’m going to configure a link via Ansible.

My suggestion is to not use a mountpoint on /opt/zammad/storage because, in the case the mountpoint disappears, the system could start writing attachments directly on disk instead of failing.

1 Like

BTW since you use ansible, here are my ansible playbooks to install and customize Zammad

One setup is for an All-In-One scenario (everything on one server) or a distributed setup where ES and Postgres are on separate machines.

Maybe it can help figure out some things.

In the tools directory you can find the API tools to export/import data from Zammad.

Best,
Skip

1 Like

@skip , please make it clear that this has nothing to do with official Zammad sources. Thank you.

Hi,

for clarification, what would fulfill the make it clear that it has nothing to do with official Zammad sources request?
It is not in the official Zammad Github repo, I am not a member of the Core Team and it is stated in the Readme of the repo linked

Thanks

It contains the name “Zammad”. Your ansible libary may make others believe it’s something official while it’s not.

See: Trademark Policy

I am a bit confused.

The code repository is a collection of files related to Zammad, the helpdesk software, which is why it includes “Zammad” in its name. This is similar to how a repository might be named “Google-Drive.py” or “Salesforce-API” based on its contents. The repository name corresponds to the directory name used for the project.

When I browse GitHub and search for “Zammad ansible” (https://github.com/search?q=zammad+ansible&type=repositories), I find multiple Ansible playbooks. These playbooks are sets of instructions designed to facilitate the professional installation of Zammad.

Can you help me understand how mine and their collection of Ansible scripts could lead others to mistakenly believe it is an official Zammad resource, even though they are not part of the official Zammad · GitHub repository, organization, or affiliated in any way?

Thank you for taking the time to help me understand this issue. Additionally, please provide clear instructions on how to appropriately name a directory that serves as a project name on GitHub (or similar open-source git repository services) when associated with Zammad, ensuring compliance with the trademark policy:

The primary purpose of your project is to promote the spread and improvement of Zammad software.
Your project is non-commercial in nature (it can generate revenue to cover its costs or contribute to non-profit entities, but it cannot operate as a for-profit project or business).
Your project neither promotes nor is associated with entities that fail to comply with the AGPL license under which Zammad is distributed.

Thank you! :smiling_face:

Because you pushed my nose onto yours and I am friendly letting you know it may be an issue. Now let’s stop the discussion here as you don’t seem to understand at all and I don’t care enough to safe your butt further.

Alright, to bad there is no clarification in this thread and thank you for trying to save my butt.

@MrGeneration quite frankly I don’t understand the problem in here. The @skip repository meets, according to me, points 1,2,3 of the foundation trademark policy.
If this is not the case, I suggest to make it much clearer in the trademark policy which kind of sentence we (all) should place on our repositories to avoid issues. Because, I believe, everyone in here has at least a branch name “my-zammad” or alike…

Stopping the conversation without providing the requested information is surely not helping in fixing any kind of issue.

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