Backup strategy

What to backup?

  1. Databases
  2. Website files
  3. Configuration files
  4. Mail data

Automatic backups

#!/bin/bash
DATUM=$(date +%Y%m%d)

# Database
mysqldump -u root -p'password' --all-databases > /backups/db_$DATUM.sql

# Files
tar -czf /backups/www_$DATUM.tar.gz /var/www/

# Remove old
find /backups -mtime +7 -delete

Cronjob

0 3 * * * /root/backup.sh

External storage

  1. rsync to other server
  2. S3 compatible storage
  3. FTP/SFTP

Need help?

We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.