Why Are My Video Files Duplicated in Multiple SFTP Jail Directories?

Hi HestiaCP Team & Community,

I’m running into an issue with SFTP jail directories on my server. After uploading video files via an SFTP user (e.g., vids1), I noticed that the same files also appear under other jailed users like vids1_vids, taking up additional disk space.

Examples:

/srv/jail/vids1/home/vids1/web/…/contents/videos/…
/srv/jail/vids1_vids/home/vids1_vids/…/contents/videos/…

These folders contain the same files (same names and sizes), and I’m concerned it’s causing unnecessary disk usage. I’ve double-checked:

  • I’m not running any scripts that copy or sync these.
  • The uploads are done via SFTP into only one user.
  • All users are set up by HestiaCP and chrooted via OpenSSH Match blocks.

My questions:

  1. Is HestiaCP responsible for this duplication behavior?
  2. Is this expected or a misconfiguration?
  3. Can I avoid this and make users share the same data directory (safely)?
  4. Any best practices for jailed FTP users working with large video files?

I’d really appreciate any explanation or advice on how to handle this better — especially with large files like video content.

Thanks in advance!

Its only a symlink, no duplication.

Sorry I checked with ncdu Its not symlink duplicate size found.
and also did ls -l to see if its symlink but I found its duplicate and also additional FTP user not as before on Ubuntu 22.04

Take a look to this post:

1 Like