Selective Backup (Files Only / DB Only)

7 vues Backups & Restoration

Creating Partial Backups in DirectAdmin

Sometimes you do not need a full account backup. Selective backups let you back up only specific components — such as website files or databases — saving time and disk space. This is especially useful before making targeted changes like a theme update or database migration.

Files-Only Backup

  1. Log in to DirectAdmin and go to Advanced Features → Create/Restore Backups.
  2. Under the Create Backup section, check Home directory (this includes your website files).
  3. Uncheck Databases, E-mail data, E-mail settings, and any other components you do not need.
  4. Select the domain(s) to include.
  5. Click Create Backup.

This creates a backup containing only your public_html and other files in your home directory, without database dumps or email data.

Database-Only Backup

  1. Go to Create/Restore Backups.
  2. Check only Databases.
  3. Uncheck all other components.
  4. Click Create Backup.

Manual Database Export via phpMyAdmin

For granular control over database backups, use phpMyAdmin:

  1. Navigate to Account Manager → phpMyAdmin.
  2. Select the database you want to export from the left sidebar.
  3. Click the Export tab.
  4. Choose the export method:
    • Quick: Exports the entire database with default settings.
    • Custom: Lets you select specific tables, output format, and compression.
  5. Select SQL as the format.
  6. Click Go to download the .sql file.
Tip: When backing up before a CMS update (e.g., WordPress), export the database via phpMyAdmin and download a copy of the wp-content folder via FTP. This covers the two most critical components without creating a full account backup.

Manual File Backup via SSH

If you have SSH access, you can create targeted file archives:

# Back up only public_html
tar -czf ~/backups/files-only-$(date +%Y%m%d).tar.gz -C ~/domains/example.com public_html

# Back up a specific directory
tar -czf ~/backups/uploads-$(date +%Y%m%d).tar.gz -C ~/domains/example.com/public_html/wp-content uploads

When to Use Selective Backups

  • Before plugin/theme updates: Back up files and the database.
  • Before database schema changes: Database-only backup.
  • Before redesigning a site: Files-only backup of the current design.
  • Migrating email: Email-only backup before changing mail providers.
Besoin d'aide ?

Vous ne trouvez pas ce que vous cherchez ? Notre équipe de support est prête à vous aider.

Contacter le support
Bonjour ! Comment pouvons-nous vous aider ?
Discuter