Import and Export
Scoriet's import and export features allow you to share projects, templates, and schemas with teammates, transfer between teams, or create backups. Export and import are powerful tools for collaboration and disaster recovery.
Why Import and Export?
Export Use Cases
- Share templates with other projects or teams
- Backup projects before major changes
- Distribute project configurations to team members
- Migrate projects between Scoriet instances
- Archive completed projects for reference
Import Use Cases
- Reuse templates from other projects
- Restore from backup after accidental deletion
- Merge projects from different teams
- Migrate from external tools or systems
- Duplicate entire projects for variations
Exporting Projects
Export Full Project
Export everything: schemas, templates, settings, and team configuration.
Steps:
- Open project you want to export
- Click Settings in navigation
- Go to Advanced > Export Project
- Choose export format:
- ZIP - Compressed, for file sharing
- JSON - Plain text, for version control
- Select what to include:
- ✓ Schemas and tables
- ✓ Templates
- ✓ Languages
- ✓ Team members list
- ✓ Settings
- Click Export
- File downloads to your computer
export-project-dialog.pngExport Templates Only
Share templates without exposing schemas or settings.
Steps:
- Open project
- Settings > Templates > Export Templates
- Select specific templates to export
- Choose format (ZIP or JSON)
- Click Export
Template export includes:
- Template code
- Template name and description
- Assigned language
- Configuration variables
Not included:
- Database schemas
- Generated code
- Team information
- Project settings
Export templates to share with other projects or teams. Templates are portable and don't depend on specific schemas.
Export Schemas Only
Share database structure without code generation templates.
Steps:
- Settings > Database > Export Schema
- Select specific schemas to export
- Choose format:
- SQL - Native database creation script
- JSON - Scoriet schema format
- CSV - Table structure for import elsewhere
- Click Export
Use cases:
- Share database design with database administrators
- Migrate schema to another database
- Archive database structure
- Import into documentation tools
Exporting schemas as SQL lets you create actual databases in any SQL system.
Export Settings Only
Export configuration without data.
Steps:
- Settings > Advanced > Export Settings
- Choose what to export:
- Language configurations
- Code style preferences
- Environment variables
- Webhook configurations
- File is saved as JSON
Use case: Create standard configurations for your team. Import these settings into new projects.
Importing Projects
Import Full Project
Import a previously exported project.
Steps:
- Go to Projects dashboard
- Click Import Project button
- Select exported file (ZIP or JSON)
- Choose import mode:
- New Project - Create new project from import
- Merge to Existing - Combine with current project
- If merging, choose conflict resolution:
- Replace - Imported items overwrite existing
- Keep Both - Keep both versions (with numbering)
- Skip - Import only items not already present
- Click Import
- Wait for import to complete (usually 5-10 seconds)
import-project-dialog.pngImport Templates
Add templates from another project.
Steps:
- Open target project (where you want templates)
- Settings > Templates > Import Templates
- Select source (exported file or another project)
- Select specific templates to import
- Choose conflict resolution:
- Replace existing templates with same name
- Keep both and rename imported ones
- Skip if template already exists
- Click Import
Template compatibility:
- ✓ Templates from same Scoriet version are compatible
- ✓ Templates use standard template syntax (version-independent)
- ⚠ Verify templates work after import (may reference different databases)
After importing templates, test them with your schemas to ensure they work correctly in their new environment.
Import Schemas
Add database schemas from external source.
Steps:
- Open project
- Settings > Database > Import Schema
- Choose import source:
- Live database connection
- Exported SQL file
- Exported JSON schema
- If from file, select and upload
- If from database, enter connection details
- Select tables to import
- Click Import
- Review imported tables for accuracy
Import from Different Source
Import schemas from SQL files, even if not originally from Scoriet.
Supported formats:
- MySQL/MariaDB -
.sqldump files - PostgreSQL -
.sqldump files - SQLite -
.dbfiles - SQL Server -
.sqlscripts
Steps:
- Settings > Database > Import Schema > From File
- Upload SQL or database file
- Select database type
- Scoriet parses structure
- Select tables to import
- Review and confirm
- Tables imported as Scoriet schemas
Managing Imports and Exports
Understanding File Formats
ZIP Format:
- Compressed file containing all project data
- Portable across systems and networks
- Smaller file size for sharing
- Can be opened like a folder on some systems
- Recommended for sharing
JSON Format:
- Human-readable plain text
- Can be version controlled in Git
- Larger file size than ZIP
- Editable directly (for advanced users)
- Recommended for archival
SQL Format:
- Native database creation scripts
- Can be executed in any SQL database
- Database-specific syntax
- Useful for database migration
- Works with any SQL tool
Export History
Keep track of exports:
- Settings > Advanced > Export History
- See recent exports with timestamps
- Re-download export if file lost
- Delete old exports to save storage
Scoriet keeps exports for 30 days. Download important exports to your computer for long-term storage.
Scheduled Exports
Create automatic backups:
- Settings > Backup > Scheduled Exports
- Create export schedule:
- Daily at specific time
- Weekly on specific day
- Monthly on specific date
- Choose what to export (full project, templates, etc.)
- Store location:
- Cloud storage (Google Drive, Dropbox)
- Email to backup address
- FTP server
- Automatic exports run on schedule
Sharing Projects with Teams
Sharing Exported Files
Steps:
- Export project (see above)
- Share file via:
- Email attachment
- Cloud storage (Google Drive, Dropbox, OneDrive)
- File sharing service
- Git repository
- Team member downloads file
- They import into their Scoriet instance
Sharing via Git
Share projects through version control:
- Export project as JSON
- Commit to Git repository
- Team members pull repository
- Import JSON file into their projects
Version controlling exported projects in Git gives you full history of project changes and makes collaboration easier.
Sharing Read-Only
Share for review only (no editing):
- Export project
- Change project visibility to "Public"
- Generate shareable link
- Team members view via link
- They can't edit (read-only access)
Backup and Recovery
Manual Backups
Create manual backups anytime:
- Export project
- Save to reliable storage:
- External hard drive
- Cloud storage (with versioning)
- Network backup
- Label with date (e.g., "Project_2024-04-13.zip")
- Keep multiple versions (keep last 5 backups)
Automatic Backups
Scoriet automatically creates backups:
- Daily backups - Every 24 hours
- Before major operations - Before deletion or major changes
- 30-day retention - Backups kept for 30 days
Access automatic backups:
- Settings > Advanced > Manage Backups
- See list of available backups
- Click backup to restore
Disaster Recovery
If project is accidentally deleted:
- Go to Settings > Manage Backups
- Find backup before deletion occurred
- Click Restore
- Confirm restoration
- Project is restored with all data
Automatic backups only kept 30 days. For long-term backups, manually export and store externally.
Best Practices
Regular Exports
Create regular backups:
- Critical projects - Weekly exports
- Active projects - Monthly exports
- Completed projects - At completion
- Before major changes - Always backup first
Naming Conventions
Use clear naming for exported files:
✓ project_ecommerce_2024-04-13.zip
✓ templates_api_generation_v2.json
✓ schema_customers_database.sql
✓ backup_2024-04-13_daily.zip
✗ project.zip
✗ export.json
✗ backup.sql
✗ file.zip
Organization
Keep exported files organized:
Exports/
├── Projects/
│ ├── ecommerce/
│ │ ├── 2024-03-01.zip
│ │ └── 2024-04-13.zip
│ └── admin-dashboard/
└── Templates/
├── laravel-templates.json
└── react-components.json
Version Control
Store exports in Git:
# Export project
# Commit to Git
git add exports/project_ecommerce.json
git commit -m "Backup: ecommerce project templates and settings"
git push
# Later, restore from Git
git checkout HEAD -- exports/project_ecommerce.json
# Import the file into Scoriet
Version controlling exports gives you full history and makes collaboration easier than email attachments.
Troubleshooting Import/Export
Export File Not Creating
Solutions:
- Check available disk space
- Try smaller export (templates only, not full project)
- Check file permissions
- Try different format (ZIP vs JSON)
Import Fails with Error
Check these:
- File compatibility - Is it from Scoriet? (or compatible SQL)
- File corruption - Try re-downloading export
- Version mismatch - Exports from newer versions may not import to older
- Missing dependencies - Import referenced databases first
Templates Don't Work After Import
Troubleshooting:
- Check database references - Does template reference right database?
- Test with sample data - Try generating from imported template
- Review placeholders - Are
{:table.name:}etc. correct? - Check languages - Is language configured in project?
Slow Import/Export
Performance tips:
- Export only needed items (templates only, not full project)
- Use ZIP format (compressed, faster transfer)
- Export to local storage (not network drives)
- Close other applications (free up memory)
- Try smaller exports - Split large projects into parts
Advanced Import/Export
Scripted Import/Export
For automated workflows:
# Export using API
curl -X POST https://scoriet.api/projects/123/export \
-H "Authorization: Bearer TOKEN" \
-d '{"format":"zip","include":["templates","schemas"]}'
# Import using API
curl -X POST https://scoriet.api/projects/import \
-H "Authorization: Bearer TOKEN" \
-F "file=@export.zip"
See API Documentation for full API reference.
Merge Multiple Exports
Combine multiple project exports:
- Import first project
- Import second project → Choose "Merge"
- Select conflict resolution
- Repeat for additional projects
- Result: One project with items from all exports
Transform on Import
Modify content during import (advanced):
- Download export
- Edit JSON file directly
- Modify schema names, template code, settings
- Re-import modified file
- Changes applied during import
Only edit JSON exports if you understand the format. Corrupted JSON imports will fail.
Related Topics: