Skip to main content
Skip table of contents

How to set a different disk partition as a VXG Server storage

Sometimes you need to set a different disk partition to keep all VXG Server recordings, for example, it can be an SD card. This guide shows how to do this when the Server is already installed.

Step 1: Stop VXG Server from its main directory (if it is running)

CODE
/stop.sh

Step 2, optional: Create a directory in the new disk to store video files

CODE
mkdir <PATH>

for example /media/user/vms_storage/records

Step 3, optional (if you already have recorded video): Copy your already recorded files there

CODE
sudo cp /var/lib/docker/volumes/vxg_server_record/_data/ <PATH>

Step 4: Remove the old docker volume for recordings

CODE
docker volume rm vxg_server_record

Step 5: Edit docker-compose.override.yml file like this (this file is located in the main directory of VXG Server):

CODE
version: "3.3"

volumes:
  record:
    driver_opts:
      type: none
      o: bind
      device: <PATH>

in this example, the PATH is /media/user/vms_storage/records

Step 6: Start the server, the newly recorded files will be stored in the PATH (/media/user/vms_storage/records)

CODE
/start.sh

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.