Store self-hosted files or backups on another drive

Set FILES_DIR or BACKUPS_DIR to keep uploads or backups on a larger or separate drive without moving the whole data folder.

Self-Hosted Servers · Updated November 19, 2026

Set FILES_DIR to keep uploaded files on another drive, or BACKUPS_DIR to keep backups elsewhere. Set DATA_DIR to move everything. The server creates the folders if needed.

VariableDefaultMoves
FILES_DIR<DATA_DIR>/filesUploaded files, which grow fastest
BACKUPS_DIR<DATA_DIR>/backupsAutomatic and manual backups
DATA_DIRdata next to the binary, or the folder chosen at installDatabases, logs, files and backups

Logs always stay in <DATA_DIR>/logs.

Keeping backups on a different disk means one disk failure cannot take both your data and your backups.

Windows

Save as start-gamevox.bat next to the .exe, remove :: from the lines you need, and double-click it:

@echo off
:: set FILES_DIR=D:\gamevox-files
:: set BACKUPS_DIR=D:\gamevox-backups
gamevox-self-hosted-server.exe
pause

For a Windows service, set the variables in the service's Environment registry value instead. See environment variables.

Linux

Save as start-gamevox.sh, uncomment the lines you need, run chmod +x start-gamevox.sh, then ./start-gamevox.sh:

#!/bin/bash
# export FILES_DIR=/mnt/storage/gamevox-files
# export BACKUPS_DIR=/mnt/storage/gamevox-backups
./gamevox-self-hosted-server

For a systemd service, add Environment= lines instead (see Linux with systemd). The service runs as the gamevox user, so give it the new folder:

sudo chown -R gamevox:gamevox /mnt/storage/gamevox-files

Move existing files

  1. Stop the server.
  2. Copy the contents of data/files/ or data/backups/ to the new folder.
  3. Set the variable and start the server.

Still need help?

Email our support team and a person will get back to you.

Email support@gamevox.com