Tinyfilemanager Docker Compose ((hot)) Here

#!/bin/bash # backup-tfm.sh DATE=$(date +%Y%m%d) docker run --rm -v tinyfilemanager_tinyfilemanager_config:/config -v $(pwd):/backup alpine tar czf /backup/tfm-config-$DATE.tar.gz -C /config . tar czf data-backup-$DATE.tar.gz /srv/data For automation, add this to your docker-compose.yml as a separate service:

RUN apk add --no-cache zip unzip git nano RUN docker-php-ext-install zip Optional: Set custom theme or inject custom config COPY custom.css /var/www/html/custom.css

services: tinyfilemanager: build: . # ... rest of the configuration By default, TinyFile Manager may hit upload limits or memory constraints when handling large files. Override the PHP configuration via a custom php.ini : tinyfilemanager docker compose

USER www-data

docker compose up -d Check if it's running: rest of the configuration By default, TinyFile Manager

mkdir tinyfilemanager-docker && cd tinyfilemanager-docker touch docker-compose.yml Open docker-compose.yml and paste the following:

backup: image: alpine container_name: tfm-backup volumes: - tinyfilemanager_config:/config:ro - /srv/data:/data:ro - ./backups:/backup command: sh -c "tar czf /backup/tfm-$(date +%%Y%%m%%d).tar.gz /config /data" restart: "no" Run docker compose run --rm backup whenever needed. 1. Personal Cloud Replacement: Mount your Nextcloud data directory, or keep a simple ~/Documents folder accessible from anywhere. rest of the configuration By default

volumes: tinyfilemanager_config: