VXG Knowledge Base

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)

/stop.sh


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

mkdir <PATH>

for example /media/user/vms_storage/records


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

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


Step 4: Remove the old docker volume for recordings

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):

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)

/start.sh