·
Added a discussion

We’re currently running a large UNA installation, and our /storage directory has grown to over 400 GB. After reviewing the structure, it seems that much of the content may be old or unused media (timeline uploads, resized/cached images, temporary files, etc.).

We recently figured out how we can migrate the storage to a CDN-style external drive, which will make scaling and performance management much easier.

However, before we do that, we’d really like to clean things up properly — removing or archiving unnecessary files to avoid syncing a bloated library.

Before taking action, I wanted to check with the community:

  1. Has anyone here cleaned up or archived old media files from UNA before?
  2. Is there a recommended approach or script to detect orphaned files (not referenced in the database)?
  3. Could someone help clarify which /storage sub-directories are safe to clear (cache/temp, etc.) and which are essential for site operation?
  4. Are there any UNA utilities or third-party tools for safely pruning timeline photos, videos, or older uploads?

We’ve already successfully mounted additional drives to handle space growth, but would like to take a more structured approach before moving to CDN storage.

Environment details:

  • UNA version: 14
  • Hosting: VPS
  • Approx. total storage: ~400 GB (mostly media)

Any insight, tools, or real-world examples from others who’ve tackled this would be greatly appreciated! 🙏

Best regards,

Chris Buys

  • 157
Comments
    Login or Join to comment.