๐ก๏ธ Database Backup & Recovery
Create and download secure backups of your website's database. Simple, reliable, one-click backup solution.
๐ Database Overview
Loading database statistics...
๐ Backup Statistics & Monitoring
๐ค Automatic Backup Status
Loading automatic backup status...
๐พ Storage Usage
Loading storage information...
๐พ Create Database Backup
This backup includes all your website data: products, categories, subcategories, images, and tags. The backup file will be in JSON format, making it easy to restore later.
๐ Backup History
No backups found locally.
๐ How to Use This Backup System
๐ฏ Step-by-Step Instructions
- Test Connection: Click "๐ Test Database Connection" to verify your database is accessible
- Create Backup: Click "๐๏ธ Create & Download Backup" to generate and download your backup file
- Save Securely: The backup will download automatically - save it to a secure location (cloud storage, external drive, etc.)
- Regular Schedule: Repeat weekly or before major changes to keep your data safe
๐ Alternative: Local Backup Script
For developers who want to run backups from their local machine, you can use our backup script:
๐ View Local Backup Script Instructions
Step 1: Make sure you have PostgreSQL client tools installed
Step 2: Set your DATABASE_URL environment variable
Step 3: Run the backup script from your project directory:
# Make script executable (first time only) chmod +x scripts/backup-database.sh # Run the backup ./scripts/backup-database.sh
Output: Backup files will be saved to the ./backups/ directory
๐ Restoration Instructions
๐ How to Restore from Backup
Method 1: Using Admin Panel Backups (JSON files)
For backups created from this admin panel:
# Use our restoration script node scripts/restore-from-json.js your-backup-file.json
Method 2: Using Local Script Backups (.dump files)
For backups created with the local backup script:
# Restore from a .dump file pg_restore -d "$DATABASE_URL" -c -v backup_file.dump
๐ก Pro tip: Test your restoration process periodically to ensure your backups work correctly.
๐ Backup Best Practices
๐ Regular Schedule
- Create manual backups weekly
- Before making major changes
- Test restorations monthly
- Keep multiple backup copies
๐ Storage Locations
- Cloud storage (Google Drive, Dropbox)
- External hard drives
- Multiple locations for safety
- Version control for code (GitHub)
๐ Security
- Keep backups in secure locations
- Use secure connection strings
- Limit access to backup files
- Regular security reviews
๐ Documentation
- Document your backup procedures
- Keep restoration instructions handy
- Note backup locations and passwords
- Update processes as site grows
๐ Recovery Options
๐ Vercel Instant Rollback
Quickly revert to a previous deployment if new code causes issues.
Open Vercel Dashboard โ๐พ Database Restoration
Restore from manual or automated backups using our restoration tools.
๐ Restoration Instructions
For JSON backups (from admin panel):
node scripts/restore-from-json.js backup-file.jsonFor local script backups (.dump files):
pg_restore -d "$DATABASE_URL" -c -v backup-file.dumpโ ๏ธ Always test restoration on a development database first!
๐๏ธ GitHub Recovery
Clone your repository to recover source code and redeploy.
View Repository โ