A VPS gives you full control of a server, and with it full responsibility for the data on it. A disk mistake, a bad update, ransomware or a deleted database can undo months of work in seconds. This guide explains how to plan backups for a Domain India VPS, which tools to use, how to restore, and how to test that your backups really work.
A Domain India VPS is self-managed, so plan your own backups: dump every database, copy your files and configuration, and send the copies off the server on a schedule with a tool such as restic, BorgBackup or rclone. Follow the 3-2-1 rule, keep several dates, encrypt what leaves the server, and test a restore regularly. Ask support what your plan includes before relying on any server-level snapshot, and open a ticket if you need one restored.
1. Who backs up what
| Service | Backups included | What you should do |
|---|---|---|
| cPanel or DirectAdmin shared hosting | JetBackup 5, weekly on Sunday, last 5 copies kept | Keep your own copies too |
| VPS | Self-managed; ask support what your plan includes | Run your own off-server backups |
| Your own copies | Whatever you schedule | The copy you control completely |
On shared hosting, the weekly JetBackup 5 backups are described in backup and restore with JetBackup. This page is about a VPS, where you have root access and decide what to back up.
Even where a provider-side copy exists, treat it as a last resort, not your plan. It may be days old, it may not include the moment you need, and restoring it rolls back the whole server.
2. Backup types and the 3-2-1 rule
| Type | What it copies | Good for |
|---|---|---|
| Full | Everything, every time | Simple restores; uses the most space |
| Incremental | Only what changed since the last backup | Frequent backups with little space |
| Differential | Everything changed since the last full backup | Faster restores than long incremental chains |
| Snapshot | The whole disk at one moment | Rolling back a server before a risky change |
Modern tools such as restic and BorgBackup use deduplication: each run stores only new data, yet every backup can be restored as if it were full. That gives you the space savings of incrementals without their complexity.
Follow the 3-2-1 rule: three copies of your data, on two kinds of storage, with one copy off-site. For a VPS that means the live data, a backup on separate storage, and a copy with a different provider or on your own computer. Keep at least one copy that the server itself can't delete, so ransomware on the VPS can't wipe your backups too.
3. What to back up on a VPS
- Databases. Never copy live MySQL or PostgreSQL data files; take a consistent dump.
- Website and application files, for example
/var/wwwor your app folder. - Configuration:
/etc(web server, PHP, firewall, cron), SSL certificates and your own scripts. - User data: uploads, mail stores, anything your app writes.
- A package list, so you can rebuild:
dpkg --get-selectionson Debian or Ubuntu,rpm -qaon AlmaLinux or Rocky Linux.
Database dumps:
# MySQL or MariaDB: consistent dump of InnoDB tables without locking the site
mysqldump --single-transaction --routines --triggers --all-databases | gzip > /backup/db-$(date +%F).sql.gz
# PostgreSQL
sudo -u postgres pg_dumpall | gzip > /backup/pg-$(date +%F).sql.gzStore database credentials in ~/.my.cnf with permissions 600 rather than on the command line.
4. Automate off-server backups
A backup on the same disk as the data doesn't protect you from losing the server. Send it somewhere else with one of these well-maintained tools:
A minimal restic setup:
export RESTIC_REPOSITORY="s3:https://s3.example-provider.com/my-vps-backups"
export RESTIC_PASSWORD_FILE=/root/.restic-pass # keep a copy of this password somewhere safe
restic init # once
restic backup /etc /var/www /backup # each run
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prunePut the dump and the backup commands in one script and run it from cron at a quiet hour:
30 2 * * * /usr/local/bin/vps-backup.sh >> /var/log/vps-backup.log 2>&1For step-by-step versions, see automated backups with cron and rclone and VPS backups to Amazon S3.
restic and Borg repositories are encrypted. Without the password or key file, nobody can restore them, including us. Store the password in a password manager and in one offline place, never only on the VPS.
5. Restoring
- Stop and assess.Find out what was lost and when it was last good. Don't overwrite anything until you know which backup date you need.
- Restore to a separate folder first.For example
restic restore latest --target /restore. Compare it with what is on the server. - Restore files.Copy the restored files back into place, keeping owners and permissions (
rsync -a). - Restore the database. `gunzip < db-2026-09-20.sql.gzmysql
for MySQL, orpsql -f` for PostgreSQL. Stop the application first so it doesn't write half-way through. - Restart and check.Restart the services, load the site, log in, and check recent records are there.
If the VPS itself is broken, you can order a fresh VPS, restore onto it, and switch DNS once it works. That route also works as a disaster-recovery test.
6. Snapshots on a Domain India VPS
The Domain India client area has no controls for VPS snapshots, reinstalls or restores; support handles them. Before a risky change, such as an OS upgrade, ask support what your plan includes and whether a snapshot can be taken. If you need a snapshot restored, open a ticket with the VPS's IP address and the date you want to go back to.
A snapshot restore rolls the whole disk back: everything written after the snapshot is lost, including orders, emails and uploads. Take a fresh database dump and file copy before you ask for one, so you can bring back recent data afterwards.
7. Plan for disaster and test it
- Write down the rebuild steps: OS, packages, config, where the backups are, and the order to restore them.
- Decide what loss you can accept. If losing a day of orders is too much, back up the database more often than daily.
- Test a full restore onto a spare VPS or a local virtual machine a few times a year. A backup you have never restored is a hope, not a backup.
- Monitor the job. Check the log, or have the script send you a message when it fails.
8. Where Domain India fits
A Domain India VPS gives you root access to run any of the tools above. If you'd rather not manage server backups yourself, our cPanel and DirectAdmin shared hosting includes weekly JetBackup 5 backups you can restore or download from the panel.
- 1 vCPU
- 2 GB DDR4 RAM
- 64 GB NVMe SSD Storage
- 2 TB Monthly Bandwidth
- 50 GB NVMe SSD Storage
- 100 GB Monthly Bandwidth
- 5 Websites
- 50 Email Accounts
Prices on the cards are live Domain India list prices and exclude 18% GST.
Frequently asked questions
Does Domain India back up my VPS?
A Domain India VPS is self-managed, so plan and run your own backups. Ask support what your plan includes before you rely on any server-level snapshot, and treat your own off-server copies as your main protection.
How do I restore a snapshot of my VPS?
The client area has no snapshot controls for a VPS, so open a support ticket with the VPS's IP address and the date you want to go back to. A snapshot restore rolls back the whole disk, so take your own copy of recent data first.
What is the best backup tool for a Linux VPS?
restic and BorgBackup are strong choices: they encrypt, deduplicate and keep many dates in little space. rclone is useful for copying dump files to cloud storage.
Can I just copy the MySQL data folder?
No. Copying live database files gives an inconsistent copy that may not start. Use mysqldump with --single-transaction, or pg_dump for PostgreSQL.
How often should I back up?
As often as the data changes and you can afford to lose. A daily database dump and file backup suits most sites; shops taking orders all day may need database dumps several times a day.
How are shared hosting backups different?
On Domain India cPanel and DirectAdmin shared hosting, JetBackup 5 takes a weekly backup every Sunday and keeps the last 5 copies, which you can restore or download from the panel. You should still keep your own copies.
Ready to protect your server? Set up automated off-server backups, compare VPS plans, or open a support ticket to ask what your VPS plan includes.
Tell us your VPS's IP address and what you need, and we will explain what your plan includes.
Open a support ticket