When migrating from local disk to S3 storage, which existing data needs to be migrated? #31475
Replies: 1 comment 4 replies
-
|
Yes, you need to migrate all data under both /app/api/storage (including image_files, privkeys, tools, upload_files, website_files, etc.) and /app/storage (assets, cwd, persistence, plugin, plugin_packages, etc.) to S3. These directories contain user uploads, keys, plugin files, and other essential runtime data. If you only migrate part of them, any files left behind on the old disk will be lost when the containers are rebuilt, which can break uploads, plugins, or other features that depend on those files being present details & migration command Docker storage config reference. To migrate, use the flask migrate-oss command. Make sure to back up all persistent storage (including Docker volumes and your .env) before starting. For plugins, ensure they are present in the S3 bucket in the correct structure—if not, you may need to manually upload or reinstall them after migration plugin S3 details. Partial migration will result in data loss and operational failures for any missing files or directories. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
For a Docker-deployed Dify instance that previously used local disk as storage and now switches to S3 storage: the original primary storage directory /app/api/storage contains subdirectories such as image_files, privkeys, tools, upload_files and website_files; the plugin storage directory /app/storage contains subdirectories including assets, cwd, persistence, plugin and plugin_packages. Do all these directories need to be migrated to S3 storage? If only part of them is migrated, will data be lost when the container is reconstructed?
Beta Was this translation helpful? Give feedback.
All reactions