Hostxpeed
Login Get Started →
Getting Started

How to Backup Files Manually

4 min read
24 views
Jun 10, 2026

Prerequisites

Before backing up files, make sure you have:

  • SSH access to your VPS
  • Sufficient disk space for backup

Backup Single File

Connect to your VPS:

ssh hxroot@YOUR_SERVER_IP -p 22
cp important.txt important.txt.backup

Backup Directory with Tar

tar -czf backup_$(date +%Y%m%d).tar.gz /var/www/html/

Backup Multiple Directories

tar -czf full_backup_$(date +%Y%m%d).tar.gz /var/www/ /etc/nginx/ /var/lib/mysql/

Exclude Certain Directories

tar -czf backup.tar.gz --exclude='cache' --exclude='logs' /var/www/

Create Incremental Backup

tar -czf backup_inc.tar.gz -g snapshot.file /var/www/

Backup with Rsync (to External Server)

rsync -avz /var/www/ user@backup-server:/backup/

✅ Manual backup has been created.

Was this article helpful?