Skip to main content

Changing the archive storage path

By default, the archive from cameras is stored in the /opt/yucca/data/alloc/ directory, and the path is defined by the alloc_dir parameter. If you want to change this behavior, create a directory at the new path and apply the permissions of the user that Yucca runs as, which is yucca by default, for example:

sudo mkdir -p /mnt/external_drive_8TB/yucca_alloc
sudo chown yucca:yucca /mnt/external_drive_8TB/yucca_alloc
Mounting the drive

If you mounted a separate drive, make sure it shows up in the list – df -h, and also don't forget to add a mount entry to /etc/fstab so that the server mounts the drive automatically on reboot.

Stop the Yucca server:

sudo systemctl stop yucca

Replace the alloc_dir parameter in the configuration:

alloc_dir = "/mnt/external_drive_8TB/yucca_alloc"

Start the Yucca server:

sudo systemctl start yucca

Make sure that files are being created in the new directory, and that the web interface's configuration tab shows the new path.