Zipline provides comprehensive backup functionality to export all your instance data, including users, files, URLs, settings, and metrics. This enables disaster recovery, migration, and data archival.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diced/zipline/llms.txt
Use this file to discover all available pages before exploring further.
Export Format
Zipline uses a versioned export format (currently version 4) that includes:- All users and authentication data
- Files and URLs metadata
- Folders and tags
- Invites and usage statistics
- Server settings and configuration
- Metrics and analytics (optional)
- System information and environment
Creating a Backup
Export your entire Zipline instance:Export Options
Exclude metrics from export:Export File Structure
The export file contains:Exported Data Types
Users
Includes:- User ID, username, and hashed password
- Avatar data
- Role (USER, ADMIN, SUPERADMIN)
- View preferences
- TOTP secrets for 2FA
- Creation timestamp
Files
For each file:- File ID, name, and original name
- Size and MIME type
- View count and max views
- Password protection
- Associated folder and user
- Deletion timestamp (if scheduled)
- Favorite status
File exports contain metadata only. The actual file data must be backed up separately from your datasource (local storage, S3, etc.).
URLs
For shortened URLs:- URL ID and code
- Destination URL
- Vanity path
- View statistics
- Password protection
- Enabled/disabled status
Invites
Invite data includes:- Invite code
- Usage count and maximum uses
- Expiration date
- Creator (inviter) ID
Folders
Folder structure:- Folder ID and name
- Public/private status
- Upload permissions
- Parent folder ID (for nested folders)
- Associated files
Tags
User tags include:- Tag name and color
- Associated file IDs
- Creator user ID
Passkeys
WebAuthn passkey data:- Passkey ID and name
- Registration data
- Last used timestamp
OAuth Providers
OAuth connection data:- Provider name
- OAuth ID and username
- Access and refresh tokens
Quotas
User quota settings:- Quota type (BY_BYTES, BY_FILES)
- Maximum files and bytes
- Maximum URLs
Metrics
Analytics snapshots containing:- System-wide statistics
- Per-user usage data
- File type distribution
- Timestamps
Importing/Restoring Data
Zipline supports importing data from export files to restore or migrate instances.Version 4 Import
The import process validates the export format and handles:- Schema validation
- Duplicate detection
- Relationship preservation
- Incremental imports
Import Process
When importing data:Backup Best Practices
Regular Backups
Create automated backups on a schedule:Backup Storage
Complete Backup Strategy
A complete Zipline backup requires:- Database export (via API endpoint)
- File datasource backup (S3 bucket, local directory)
- Configuration files (docker-compose.yml, .env)
- Thumbnails (if stored separately)
Datasource Backup
The export API provides metadata only. Backup your actual files separately:Local Storage
S3 Storage
Other Datasources
Consult your datasource provider’s documentation for backup procedures.Migration Between Instances
To migrate Zipline to a new server:Export Security
Troubleshooting
Export Fails with “Invalid setup”
Ensure your Zipline instance has completed the initial setup process.Large Export Files
For instances with many files or metrics:- Use
nometrics=trueto reduce file size - Compress exports:
gzip zipline_backup.json - Consider splitting backups by date range
Import Failures
Check:- Export format version compatibility
- Database schema matches export version
- Sufficient disk space and database resources
- Import logs for specific error messages