The Wild

How to Back Up Your Dolphin Social Community

· 6 min read · Ocean Life

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide walks you through creating a full backup of your Dolphin Social community, including all members, posts, comments, messages, and settings. A complete backup ensures you can restore your community after a server failure, accidental deletion, or migration to a new host. Before starting, you need administrative access to your Dolphin installation's file system (via FTP or a file manager in your hosting control panel) and access to your database management tool (usually phpMyAdmin). If you are unsure about any step, consult your hosting provider's documentation.

What You'll Need

  • FTP client (like FileZilla) or hosting file manager access
  • Database management tool (phpMyAdmin, Adminer, or SSH with mysqldump)
  • A local folder on your computer with enough free space for the backup (check the size of your Dolphin directory and database)
  • Your Dolphin admin credentials (for the admin panel, not just the database)
  • Your database credentials (host, username, password, database name) – usually found in inc/header.inc.php

Step-by-Step

  1. Put your site into maintenance mode. Log into your Dolphin admin panel, go to Tools > Maintenance Mode, and enable it. This prevents users from making changes while you copy files, ensuring a consistent snapshot.
  2. Back up the file system. Connect to your server via FTP or use your hosting file manager. Navigate to the folder where Dolphin is installed (e.g., public_html or dolphin). Select all files and folders inside that directory, then download them to a local folder on your computer. This includes the inc, modules, templates, and media directories, plus all configuration files. If the download is interrupted, resume it or use a zip utility on the server first (see Troubleshooting).
  3. Back up the database. Open phpMyAdmin (or your database tool) and select your Dolphin database. Click the Export tab. Choose the Quick export method and SQL format. Make sure Add DROP TABLE / VIEW / PROCEDURE / FUNCTION is checked (this helps with clean restores). Click Go to download the .sql file to your computer. Alternatively, if you have SSH access, run: mysqldump -u username -p database_name > dolphin_backup.sql.
  4. Back up the admin panel settings (optional but recommended). In your Dolphin admin panel, go to Settings > General and take note of any custom values. Some settings are stored in the database, but a screenshot or text file of your key settings (site name, email, language, etc.) helps if you need to reconfigure manually.
  5. Verify your backups. Check that the downloaded files and the .sql file are not zero bytes and that the file sizes match what you expect (compare with the server file sizes). If possible, open the .sql file in a text editor to confirm it contains SQL statements and not an error message.
  6. Store the backup safely. Place both the file folder and the .sql file in a secure location, ideally on an external drive or cloud storage. Keep at least two copies in different physical locations. Label them with the date and version (e.g., dolphin_backup_2025-04-01).
  7. Test the backup (highly recommended). Create a test installation on a local server (like XAMPP) or a staging subdomain. Upload the file backup and import the .sql file. Follow Dolphin's installation instructions for a new site, but when prompted for database details, use your backup's database. If the site loads with all your content, your backup is valid.

Common Mistakes

  • Skipping maintenance mode: If users are active during the backup, you might get an inconsistent database (e.g., a post uploaded but its file not yet saved).
  • Only backing up files or database, not both: Dolphin requires both to function. A file-only backup loses all user content; a database-only backup loses themes, modules, and uploaded media.
  • Not checking file permissions: When restoring, if file permissions are wrong (e.g., 777 vs 644), the site may break. Note the original permissions before downloading.
  • Forgetting to include hidden files: Some FTP clients hide files starting with a dot (like .htaccess). Enable “show hidden files” in your FTP client to include them.
  • Using a text editor to edit the .sql file: This can corrupt the file. Only use a dedicated SQL editor or leave it untouched.

Tips

  • Automate regular backups: Use your hosting control panel's backup tools (like cPanel's Backup Wizard) or a cron job with mysqldump to schedule weekly backups. Store them off-site.
  • Compress the file backup: Before downloading, zip the entire Dolphin folder on the server. This speeds up the download and reduces the chance of missing files.
  • Keep multiple versions: Retain at least the last three backups (e.g., weekly for a month) so you can roll back to a point before a problem occurred.
  • Document your backup process: Write down the exact steps you used, including database credentials (securely), so you or a colleague can repeat it easily.
  • Use a version control system for custom code: If you've modified core files or modules, track those changes with Git. This doesn't replace a full backup but helps with targeted fixes.

Troubleshooting

  • Download fails or times out: Large Dolphin installations can be hundreds of MB. Use a zip utility on the server (via cPanel File Manager or SSH) to compress the folder first, then download the single zip file. If still timing out, ask your host to increase the PHP memory limit or use a download manager.
  • phpMyAdmin export gives a 500 error: This often happens with large databases. Try using Custom export and uncheck Compression (or choose “gzip” and download the compressed file). Alternatively, use SSH with mysqldump, which handles large databases better.
  • The .sql file is empty or has errors: Re-export with the Quick method. If that fails, check your database connection details in inc/header.inc.php – you may need to ask your host for correct credentials.
  • After restore, site shows “database connection error”: This usually means the database name or credentials in the restored inc/header.inc.php don't match the new server. Update that file with the correct details.
  • Uploaded images are missing after restore: Check that the media folder and its subfolders are present and have correct permissions (usually 755 for directories, 644 for files). Also ensure the cache folder is empty after restore to force regeneration.

Frequently Asked Questions

How often should I back up my Dolphin community?

At least weekly if you have active members. Daily is better for high-traffic sites. The more often you back up, the less data you lose if something goes wrong.

Can I back up only the database and not the files?

No, not for a full backup. The database contains content and settings, but the file system contains uploaded images, videos, themes, and modules. You need both to restore a complete community.

Do I need to back up the cache folder?

No. The cache folder contains temporary files that Dolphin regenerates automatically. You can exclude it from your backup to save space, but it's harmless to include it.

How do I restore my backup to a new server?

Upload the file backup to the new server, create a new database and import the .sql file, then edit inc/header.inc.php with the new database credentials. Run the installer if needed, but it will detect existing data.

What if my backup file is too large to upload to a new server?

Split the .sql file into smaller parts (using a tool like BigDump) or use SSH to import it directly. For files, upload the zip and extract on the server via cPanel or SSH.

Is it safe to use a plugin to back up Dolphin?

There are third-party modules that automate backups, but they still rely on the same principles. Always verify that the plugin actually creates a complete backup by testing a restore.