Prerequisites
Before restoring files, make sure you have:
- SSH access to your VPS
- Backup file available
Restore from .tar.gz Backup
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
tar -xzf backup.tar.gz -C /
Restore to specific directory:
tar -xzf backup.tar.gz -C /var/www/html/
Restore Single File from Tar
tar -xzf backup.tar.gz path/to/specific/file.txt
Restore from .tar (Uncompressed)
tar -xf backup.tar
Restore from Directory Backup (cp)
cp -r /backup/website/* /var/www/html/
Restore with Rsync
rsync -avz /backup/website/ /var/www/html/
✅ Files restored from backup.