Symlink backup folder to mounted volume

Hey there,

I’m trying to use a mounted volume for my backups but I can’t seem to get it right. I tried mounting the volume into place (/var/discourse/shared/standalone/backups/default) and tried symlinking the default folder to a different mount folder. I copied the ownership of files and folder over as much as I could see but all I get is a server error in the admin backup section. It can’t seem to read the existing backup files that I copied over and also can’t create new ones there.

Any idea what may go wrong here?

thanks,
Helmi

1 Like

You need to set this up in the volumes section of your app.yml. Here’s my configuration:

## The Docker container is stateless; all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log
  - volume:
      host: /mnt/discourse-data/tombstone
      guest: /shared/uploads/tombstone
  - volume:
      host: /mnt/discourse-data/optimized
      guest: /shared/uploads/default/optimized
  - volume:
      host: /mnt/discourse-data/backups
      guest: /shared/backups
9 Likes

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