VPS → Backup

How to backup a VPS

Backing up your VPS might not sound exciting—until something goes wrong. Whether you’re running a business site or hosting apps, a solid backup strategy is your safety net. 

Let’s walk through how to create and automate reliable VPS backups using tools that actually work.

Get premium VPS hosting

High-performance VPS hosting that delivers unrivaled power

VPS backups: what you need to know before you start

Before diving into methods, get familiar with the key concepts that shape a smart VPS backup strategy:

1. Use cPanel or WHM to back up your VPS

If your VPS uses cPanel or WHM, you’ve already got solid backup tools at your fingertips.

How to back up with cPanel

This is a good manual option for quick backups or when you don’t have WHM access.

How to configure backups in WHM

WHM is ideal for automated, full-server backups with built-in restore points.

2. Automate Linux VPS backups with rsync or tar

No control panel? No problem. For Linux servers, command-line tools offer total control.

Rsync with cron

Rsync mirrors files from one location to another—perfect for offsite or incremental backups. Combine with cron to schedule jobs automatically

Example:

rsync -avz /var/www/ user@backupserver:/home/backups/myvps/
You can add logging, email alerts, or retention logic to your script.

Tar with cron

Tar is perfect for compressing large directories like /var/www or database dumps

Example:
tar -czf /backups/site-$(date +%F).tar.gz /var/www/

Automate with a cron job to run nightly or weekly. Compressed backups save space, but they’ll use more CPU during creation.

3. Back up a Windows VPS with built-in tools

If your VPS runs Windows Server, you can use Windows Server Backup (WSB):

WSB works well for small-to-medium workloads and supports daily backup automation.

4. Store backups offsite or in the cloud

Don’t keep all your backups on the same VPS. That defeats the point.

Popular offsite options:

Automate uploads with rclone

Install rclone on your VPS to sync files to cloud storage. Example command:

rclone copy /backups gdrive:vps-backups

You can also encrypt backups with rclone’s built-in support or use GPG beforehand.

5. Follow the 3-2-1 backup rule

For real peace of mind, follow the 3-2-1 rule:

This strategy protects against human error, hardware failure, and disasters.

6. Test your VPS backups regularly

A backup is only useful if it actually works.

Add a restore check to your backup schedule if possible. Even once a month is better than never.

7. Choose the right backup format and retention period

How long you keep backups, and in what format, affects your storage and recovery time.

(Make sure your retention policy aligns with your business or compliance needs.)

VPS backup FAQs

You can back up a VPS using control panels (like cPanel or WHM), command-line tools (like rsync, tar, or rclone), or OS-native tools (like Windows Server Backup). Most people automate these backups with cron jobs or scheduled tasks and store them offsite in the cloud or on a separate server.

Install rclone, connect it to your Google Drive account, then sync your backup directory using a command like:

rclone copy /backup gdrive:my-vps-backups

Automate with a cron job and consider encrypting sensitive data before upload.

Yes, Backup Exec still exists and is owned by Veritas. It’s enterprise-grade software, often used in Windows and hybrid environments, but not common for VPS users running Linux or self-managed hosting.

You can back up a virtual server by:

Additional resources

VPS: A beginner’s guide →

A complete beginner’s guide to virtual private servers

Protect your VPS from DDoS attack →

9 steps to harden your virtual server

Expert tips for managing your VPS →

A complete guide to help you run your VPS with confidence