Persistent Storage
Master the core principles and configuration of persistent storage in ClawCloud Run to ensure container data security and durability.
Why Persistent Storage Matters
ClawCloud Run allows rapid scaling and rebuilding of container instances, but data stored inside containers is ephemeral—it disappears when containers terminate. Persistent storage acts as a "safe deposit box" by:
✅ Securing data through external storage, even if containers restart, migrate, or rebuild.
✅ Enabling flexible scaling with dynamically adjustable storage capacity.
When to Use Persistent Storage
File storage services (Nextcloud, ownCloud, etc.)
User session data
Long-term log retention
Any application requiring persistent business data
Nextcloud Deployment Example
For a Nextcloud cloud storage service, critical data resides in the container’s /var/www/html
directory, including:
User configurations (
config/
)Database files (
data/
)Uploaded files (
files/
)Plugins (
apps/
)
Configuring Persistent Storage
Mount External Storage: Link the container’s data directory to secure external storage.
Key Settings:
Container Path: Specify
/var/www/html
for Nextcloud.Storage Size: Adjust based on business needs (e.g., 100GB).
How It Works
Zero Downtime: If a Nextcloud instance fails, a new container automatically mounts the same external storage, preserving all data.
Cross-Instance Consistency: All instances access the same centralized data source.
Pro Tip: Pair persistent storage with ClawCloud Run’s backup tools for multi-layered data protection.
Last updated
Was this helpful?