Migración y Respaldo en Locura Personal Media Server


What is Locura Personal Media Server?

Locura is a lightweight, user-friendly media server that focuses on personal privacy, customizable metadata handling, and efficient streaming to devices on your local network and remotely (if you choose). Unlike large, commercial solutions, Locura emphasizes simplicity, flexibility, and control — making it ideal for hobbyists and privacy-minded users.


Key Features

  • Media management: Organize movies, TV shows, music, and photos with flexible folder structures and metadata support.
  • Transcoding: On-the-fly or pre-transcoding to support various client devices and bandwidth conditions.
  • DLNA and native apps: Stream via DLNA-compatible devices, web UI, and native client apps for popular platforms.
  • Remote access: Optional remote streaming with authentication and bandwidth controls.
  • Plugin ecosystem: Extend functionality with community plugins for subtitles, metadata providers, and automation.
  • Privacy-first: Designed for local-first usage with optional, opt-in remote features.

System Requirements

Minimum requirements (for small libraries and light streaming):

  • CPU: Dual-core 2.0 GHz
  • RAM: 2–4 GB
  • Storage: Depends on media library size; use SSD for OS and frequently accessed metadata
  • Network: Gigabit LAN recommended for local streaming

Recommended for larger libraries, multiple transcodes:

  • CPU: Quad-core or better with hardware acceleration (Intel Quick Sync, AMD VCN, or NVENC)
  • RAM: 8–16 GB
  • Storage: NAS or large HDD array for media; SSD for OS and database
  • Network: Gigabit Ethernet; consider link aggregation or 10GbE for heavy use

Installation Methods

Locura supports multiple installation approaches. Pick one based on your environment and comfort level.

  1. Docker (recommended)
  • Advantages: Isolated, portable, easy upgrades.
  • Basic steps:
    • Install Docker and Docker Compose.
    • Create a docker-compose.yml mapping media, config, and database volumes.
    • Start the container and open the web UI.

Example docker-compose.yml (edit paths and ports as needed):

version: "3.8" services:   locura:     image: locura/locura:latest     container_name: locura     restart: unless-stopped     ports:       - "8080:8080"     volumes:       - /path/to/config:/config       - /path/to/media:/media       - /path/to/database:/data     environment:       - PUID=1000       - PGID=1000 
  1. Native Linux install
  • Suitable for users wanting full system integration.
  • Steps:
    • Install dependencies (Python/Node/etc. depending on Locura stack).
    • Clone the repo, install packages, and set up systemd service.
  1. NAS app or package
  • Some NAS platforms (Synology, QNAP) may offer community packages or allow running via Docker.

Initial Configuration

  1. Accessing the web UI
  • After installation, open http://your-server-ip:8080 (or the port you configured).
  • Create an admin account and set a strong password.
  1. Add media libraries
  • Configure library paths for Movies, TV Shows, Music, Photos.
  • Choose metadata agents (TheMovieDB, MusicBrainz, local metadata).
  1. Transcoding settings
  • Enable hardware acceleration if your CPU/GPU supports it.
  • Set maximum bitrate and concurrent transcodes according to your hardware.
  1. User accounts and permissions
  • Create user profiles with viewing restrictions and remote access limits.
  • Use separate accounts for family members or guests.

Organizing Your Media Library

Proper organization improves metadata matching and playback reliability.

Movies:

  • Use a single folder: /Media/Movies
  • File naming: Movie Title (Year).ext — e.g., The Matrix (1999).mkv
  • Avoid extra dots or special characters.

TV Shows:

  • Directory structure: /Media/TV Shows/Show Name/Season 01/Show Name – S01E01 – Episode Title.ext
  • Use SxxExx format for episode files.

Music:

  • /Media/Music/Artist/Album/01 – Track Title.ext
  • Embed cover art and tags using tools like MusicBrainz Picard.

Photos:

  • /Media/Photos/Year/Month/Event/filename.jpg
  • Keep original high-res copies and store edited versions separately.

Metadata and Subtitles

  • Metadata agents: Use TheMovieDB for movies and TVDB/TVMaze for shows. MusicBrainz for music.
  • Subtitles: Enable automatic subtitle downloads via plugins (OpenSubtitles). Prefer .srt files alongside media.
  • Local metadata: If you prefer manual control, place .nfo files beside media files with metadata and thumbnails.

Remote Access and Networking

  • Port forwarding: Forward your Locura port (e.g., 8080 or a reverse proxy port) if you want remote access.
  • Reverse proxy: Use Nginx or Caddy with TLS to secure remote connections. Example Nginx block: “`nginx server { listen 443 ssl; server_name media.example.com; ssl_certificate /path/to/fullchain.pem; ssl_certificate_key /path/to/privkey.pem;

location / {

proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 

} } “`

  • Dynamic DNS: Use a DDNS service if you don’t have a static IP.
  • Bandwidth limits: Configure max upload speeds and stream quality to prevent saturating your home connection.

Security Best Practices

  • Use HTTPS (reverse proxy + TLS).
  • Strong admin password and unique user accounts.
  • Keep Locura and OS packages updated.
  • Limit remote access to required users; consider VPN for remote streaming instead of exposing ports.
  • Regularly back up config and metadata.

Backups and Maintenance

  • Backup frequency: Weekly for libraries with frequent changes; monthly otherwise.
  • What to back up: /config, /data (database), metadata, and any custom assets/plugins.
  • Use rsync, BorgBackup, or cloud backups (encrypted) to an offsite location.
  • Maintenance tasks:
    • Clean and optimize database periodically.
    • Check disk health (SMART).
    • Update containers or packages during maintenance windows.

Plugins and Automation

  • Popular plugins: Subtitle downloaders, metadata scrapers, notifications (Discord, Telegram), and automation hooks (watch folder processors).
  • Automation: Use tools like Sonarr (TV), Radarr (movies), and Lidarr (music) to automate downloads and file placement; they integrate well with Locura.

Troubleshooting Common Issues

  • Playback buffering:
    • Check network: use wired gigabit if possible.
    • Enable hardware transcoding.
    • Lower bitrate or pre-transcode.
  • Metadata mismatches:
    • Rename files to recommended formats.
    • Force a rescan or manual metadata match.
  • Permission errors:
    • Verify container PUID/PGID or filesystem permissions on the host.
  • Failed updates:
    • Check logs, ensure volumes aren’t read-only, and backup before updating.

Example Setup Scenarios

Home single-user:

  • Raspberry Pi 4, 4GB, external USB 3.0 drive, Docker install. Suitable for direct playback and small libraries.

Family with multiple streams:

  • Home server with Intel i5 or AMD Ryzen, 16 GB RAM, hardware-accelerated GPU, RAID storage or NAS, 1GbE network.

Power user with remote access:

  • Headless server, reverse proxy with TLS, VPN for secure access, automated downloads via Radarr/Sonarr, cloud backups for critical metadata.

Further Resources

  • Official Locura docs and community forums for plugins, troubleshooting, and advanced configuration.
  • Docker and reverse proxy tutorials for environment-specific instructions.
  • Metadata agent docs (TMDB, MusicBrainz) for naming conventions and advanced matching.

If you want, I can: provide a ready-to-use docker-compose.yml tailored to your paths, write an Nginx reverse-proxy config with TLS using Let’s Encrypt, or draft a recommended hardware build for your library size. Which would you like?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *