Cloud - Self-Hosted Cloud Storage & Services
Status: Active
Last Updated: 2026-08-26
Category: Cloud Infrastructure
Prerequisites: kb/basics/, kb/containers/docker-basics
Tags: cloud, storage, nextcloud, minio, harbor, backups, object-storage, self-hosted
Summary
Build your own cloud infrastructure with self-hosted alternatives to AWS S3, Google Drive, Dropbox, and Docker Hub. Learn object storage, file sync, container registries, and backup strategies for complete data sovereignty.
๐ฏ Learning Philosophy
Own Your Data:
Commercial Cloud โ Self-Hosted Cloud โ Your Rules
(Pay forever) (One-time cost) (Full control)
This directory teaches cloud infrastructure assuming no cloud experience but desire for data sovereignty. Progressive implementation from simple file sharing through production-grade object storage and container registries.
๐ Learning Path
Prerequisites: Docker basics, basic networking
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 1: File Storage & Sync โ
โ โโ Cloud storage concepts โ
โ โโ Nextcloud setup (personal cloud) โ
โ โโ File sync clients โ
โ โโ Collaborative editing โ
โ โโ Mobile access โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 2: Object Storage โ
โ โโ S3-compatible storage โ
โ โโ MinIO setup (AWS S3 alternative) โ
โ โโ Bucket management โ
โ โโ Access policies โ
โ โโ SDK integration โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 3: Container Registries โ
โ โโ Why private registry โ
โ โโ Harbor setup (Docker Hub alt) โ
โ โโ Image scanning & security โ
โ โโ Replication and HA โ
โ โโ Registry integration โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 4: Backups & Disaster Recovery โ
โ โโ Backup strategies (3-2-1 rule) โ
โ โโ Restic encrypted backups โ
โ โโ Automated backup scheduling โ
โ โโ Off-site replication โ
โ โโ Disaster recovery testing โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 5: Production & Advanced โ
โ โโ High availability storage โ
โ โโ CDN for static assets โ
โ โโ Hybrid cloud patterns โ
โ โโ Cost optimization โ
โ โโ Performance tuning โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Articles in This Directory
โ Recently Created (2026-08-26 headless-browser research session)
- minio-setup โ S3-compatible object storage: MinIO Compose deploy, console/access keys, mc client, ILM lifecycle rules. โ CREATED 2026-08-26
- restic-backups โ Encrypted deduplicating backups: local + S3/MinIO repos, snapshot/restore/prune, systemd timer automation, monitoring. โ CREATED 2026-08-26
๐ข Phase 1: File Storage & Sync (Start Here)
Personal Cloud - Dropbox/Drive Alternative:
cloud-storage-concepts - Understanding cloud storage
- File storage vs object storage
- Sync vs backup
- Why self-host
- Privacy considerations
- Commercial vs self-hosted
- Prerequisites: None
- Time: 1-2 hours
- Resources:
[โโโโโโโโโโ]20% - Conceptual
nextcloud-setup - Your personal cloud
- Nextcloud installation (Docker)
- Initial configuration
- User management
- Storage configuration
- External storage
- Prerequisites: Docker basics
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]50% - 1-2GB RAM
nextcloud-clients - Desktop and mobile sync
- Desktop client setup
- Selective sync
- Mobile apps
- WebDAV access
- File sharing
- Prerequisites: Nextcloud running
- Time: 1-2 hours
- Resources:
[โโโโโโโโโโ]30%
nextcloud-collaboration - Team productivity
- Nextcloud Office (OnlyOffice)
- Collaborative editing
- Calendar and contacts
- Talk (video calls)
- Deck (Trello alternative)
- Prerequisites: Nextcloud proficiency
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]60% - 4GB RAM
๐ก Phase 2: Object Storage (AWS S3 Alternative)
object-storage-concepts - Understanding S3-like storage
- Object storage vs file storage
- Buckets and objects
- S3 API compatibility
- Use cases
- Prerequisites: Cloud concepts
- Time: 1-2 hours
- Resources:
[โโโโโโโโโโ]20%
minio-setup - High-performance object storage
- MinIO installation (Docker)
- Console access
- Creating buckets
- Access keys (IAM)
- Data persistence
- Prerequisites: Docker basics
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]50% - 1-2GB RAM
minio-bucket-management - Managing buckets
- Bucket policies
- Versioning
- Lifecycle rules
- Encryption
- Replication
- Prerequisites: MinIO running
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]50%
s3-sdk-integration - Application integration
- AWS SDK usage
- Python boto3
- Node.js AWS SDK
- Pre-signed URLs
- Multipart uploads
- Prerequisites: Programming basics
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]60%
s3-cli-tools - Command-line management
- mc (MinIO client)
- s3cmd
- rclone for sync
- Backup scripts
- Prerequisites: CLI proficiency
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]40%
๐ Phase 3: Container Registries (Docker Hub Alternative)
private-registry-why - Why host your own
- Docker Hub limitations
- Rate limiting issues
- Private images
- Security scanning
- Air-gapped environments
- Prerequisites: Docker understanding
- Time: 1 hour
- Resources:
[โโโโโโโโโโ]20%
harbor-setup - Enterprise container registry
- Harbor installation
- HTTPS configuration
- User authentication
- Projects and repositories
- Role-based access
- Prerequisites: Docker, reverse proxy
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]70% - 4GB RAM
harbor-image-scanning - Security scanning
- Trivy integration
- Vulnerability scanning
- Scan policies
- CVE management
- Remediation workflows
- Prerequisites: Harbor running
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]60%
harbor-replication - Multi-site registries
- Replication rules
- Push vs pull replication
- Multi-datacenter setup
- Harbor HA
- Prerequisites: Harbor proficiency
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]80%
registry-integration - Using private registries
- Docker login
- CI/CD integration
- Kubernetes imagePullSecrets
- Docker Compose with private images
- Prerequisites: Registry setup
- Time: 2 hours
- Resources:
[โโโโโโโโโโ]50%
๐ด Phase 4: Backups & Disaster Recovery (Critical)
backup-strategies - The 3-2-1 rule
- Backup vs sync
- 3-2-1-1-0 rule
- RPO and RTO
- Testing backups
- Disaster scenarios
- Prerequisites: None
- Time: 2 hours
- Resources:
[โโโโโโโโโโ]30% - Conceptual
restic-setup - Encrypted backup tool
- Restic installation
- Repository initialization
- Backup creation
- Snapshots
- Forget and prune
- Prerequisites: Linux CLI
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]40%
restic-automated-backups - Scheduled backups
- Systemd timers
- Backup scripts
- Monitoring backup success
- Email notifications
- Prerequisites: Restic basics
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]50%
backup-destinations - Where to store backups
- Local storage
- NAS backups
- Off-site storage
- Cloud storage backends
- Restic with MinIO
- Prerequisites: Backup concepts
- Time: 2 hours
- Resources:
[โโโโโโโโโโ]40%
disaster-recovery-testing - Test your backups!
- Recovery scenarios
- Restore testing
- DR drills
- Documentation
- Recovery automation
- Prerequisites: Backup system
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]60%
โซ Phase 5: Production & Advanced (Scale & Optimize)
storage-high-availability - HA storage
- RAID concepts
- ZFS for storage
- Ceph distributed storage
- MinIO distributed mode
- Storage redundancy
- Prerequisites: Production experience
- Time: 5-6 hours
- Resources:
[โโโโโโโโโโ]90% - 8GB+ RAM
cdn-static-assets - Content delivery
- CDN concepts
- Self-hosted CDN
- CloudFlare integration
- Cache strategies
- Image optimization
- Prerequisites: Web understanding
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]60%
hybrid-cloud-patterns - Best of both worlds
- Public + private cloud
- Burst to cloud
- Data tiering
- Multi-cloud strategies
- Prerequisites: Cloud experience
- Time: 3-4 hours
- Resources:
[โโโโโโโโโโ]70%
storage-cost-optimization - Efficient storage
- Deduplication
- Compression
- Lifecycle management
- Cold storage
- Cost monitoring
- Prerequisites: Storage running
- Time: 2-3 hours
- Resources:
[โโโโโโโโโโ]50%
storage-performance-tuning - Speed optimization
- Benchmarking tools
- Disk I/O optimization
- Network tuning
- Caching strategies
- SSD vs HDD considerations
- Prerequisites: Production systems
- Time: 4-5 hours
- Resources:
[โโโโโโโโโโ]80%
๐ What Comes Next?
After mastering cloud storage:
For Backups:
- kb/infrastructure/backup-automation - IaC for backups
For Containers:
- kb/containers/registry-integration - Using Harbor in k0s
For CI/CD:
- kb/cicd/artifact-storage - CI artifacts in MinIO
- kb/cicd/container-building - Build to Harbor
For Security:
- kb/security/data-encryption - Encrypt storage
๐ Resource Requirements
Nextcloud:
- Minimal (personal use): 1GB RAM, 2 CPU
[โโโโโโโโโโ]40% - Small Team (5-10 users): 2GB RAM, 4 CPU
[โโโโโโโโโโ]50% - With Office: +2GB RAM
[โโโโโโโโโโ]60%
MinIO:
- Standalone: 1GB RAM, 2 CPU
[โโโโโโโโโโ]40% - Distributed (4 nodes): 4GB RAM each
[โโโโโโโโโโ]80%
Harbor:
- Small Registry: 4GB RAM, 4 CPU
[โโโโโโโโโโ]70% - Production: 8GB RAM, 8 CPU
[โโโโโโโโโโ]90%
Restic Backup:
- Minimal: 256MB RAM
[โโโโโโโโโโ]20% - Large Repos: 2GB RAM
[โโโโโโโโโโ]50%
Complete Cloud Stack (Nextcloud + MinIO + Harbor + Backups):
- Homelab: 8-12GB RAM
[โโโโโโโโโโ]80% - Small Business: 16-24GB RAM
[โโโโโโโโโโ]90%
Storage Requirements:
- Nextcloud: 100GB+ per user
- MinIO: Depends on use case
- Harbor: 500GB+ for images
- Backups: 2-3x primary data
Learning Time Investment:
- File Storage: 1-2 weeks
[โโโโโโโโโโ]40% - Object Storage: 2 weeks
[โโโโโโโโโโ]50% - Container Registries: 2 weeks
[โโโโโโโโโโ]50% - Backups: 1-2 weeks
[โโโโโโโโโโ]40% - Production Mastery: 6-12 months
[โโโโโโโโโโ]100%
๐ ๏ธ Recommended Tool Stack
File Sync/Share:
- Nextcloud
[โโโโโโโโโโ]Required - Complete cloud - FileRun
[โโโโโโโโโโ]60% - Lightweight alternative - Seafile
[โโโโโโโโโโ]50% - High-performance sync
Object Storage:
- MinIO
[โโโโโโโโโโ]Required - S3-compatible - SeaweedFS
[โโโโโโโโโโ]60% - Alternative - Ceph
[โโโโโโโโโโ]50% - Enterprise, complex
Container Registry:
- Harbor
[โโโโโโโโโโ]90% - Enterprise features - Gitea Packages
[โโโโโโโโโโ]70% - All-in-one - Docker Registry
[โโโโโโโโโโ]60% - Minimal
Backup Tools:
- Restic
[โโโโโโโโโโ]Required - Encrypted, efficient - Borg
[โโโโโโโโโโ]80% - Deduplication - Duplicati
[โโโโโโโโโโ]60% - GUI-friendly
Supporting Tools:
- rclone
[โโโโโโโโโโ]90% - Sync tool - Syncthing
[โโโโโโโโโโ]80% - P2P sync - ZFS
[โโโโโโโโโโ]80% - Enterprise filesystem
๐ก Pro Tips for Cloud Storage
- Backups Aren't Sync: Nextcloud sync โ backup (use Restic!)
- Test Restores: Backup without restore testing = no backup
- 3-2-1 Rule: 3 copies, 2 media types, 1 off-site
- Encrypt Everything: Especially off-site backups
- Monitor Storage Usage: Set quotas, alerts for full disks
- Version Everything: Accidental deletes happen
- Document Recovery: Write DR procedures while system works
- Automate Backups: Humans forget, cron doesn't
- Off-site is Critical: House fire = local backup gone
- Start Small, Scale Up: Perfect is enemy of done
๐ Common Cloud Storage Pitfalls
Pitfall 1: No Backups
- "Nextcloud IS my backup" - Wrong!
- Fix: Separate backup system (Restic)
Pitfall 2: Untested Restores
- Backups run but never tested
- Fix: Quarterly restore drills
Pitfall 3: Single Copy
- All data on one disk
- Fix: RAID, off-site replication
Pitfall 4: No Monitoring
- Storage full, backups fail silently
- Fix: Monitoring + alerting
Pitfall 5: Weak Access Control
- Public buckets, leaked credentials
- Fix: Principle of least privilege
Pitfall 6: No Encryption
- Off-site backups in plain text
- Fix: Restic encryption, MinIO encryption
Pitfall 7: Ignoring Costs
- Storing everything forever
- Fix: Lifecycle policies, cold storage
Pitfall 8: Poor Documentation
- How to restore when disaster strikes?
- Fix: Written DR procedures
๐ Related KB Sections
- kb/containers/ - Docker for cloud services
- kb/infrastructure/ - IaC for storage
- kb/security/ - Encryption, access control
- kb/observability/ - Monitor storage health
- kb/networking/ - Storage networking
๐ Change Log
2026-01-30
- Created cloud storage directory structure
- Defined complete learning path from file sync to HA storage
- Established Nextcloud + MinIO + Harbor as core stack
- Listed all planned articles with time estimates
- Added resource requirements for cloud services
- Emphasized backup strategies and DR testing
- Organized by learning phases (1-5)
- Added tool recommendations with ratings
- Cross-referenced related KB sections
- Included production storage patterns
โ๏ธ Remember: Cloud = Someone else's computer! Self-hosted cloud = YOUR computer, YOUR rules! Start with Nextcloud for files, add MinIO for object storage, Harbor for container images, and Restic for backups. Test restores religiously - untested backups are worthless!
Change Log
- 2026-08-26: Added 2 new articles created via headless-browser web research session; marked planned items as created.