cash602-cmd / vps-backup-sync
Zero-dependency VPS backup, rsync migration, and crontab automation utility for cloud hosting servers.
Package info
github.com/cash602-cmd/vps-backup-sync
Language:Shell
pkg:composer/cash602-cmd/vps-backup-sync
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-13 06:28:05 UTC
README
A robust, lightweight, and opinionated command-line utility for automated VPS backups, resume-supported SSH sync, and zero-downtime server-to-server migrations.
💡 Looking for cheap, high-storage backup servers?
Check our verified data on Best Cheap Storage VPS 2026 and Global VPS Rankings.
⚡ Quick Start
1. One-Line Launch (Interactive Menu)
Run directly on your server with no manual downloads required:
curl -sL https://raw.githubusercontent.com/cash602-cmd/vps-backup-sync/main/backup-sync.sh | bash
2. Or Clone and Run
git clone https://github.com/cash602-cmd/vps-backup-sync.git
cd vps-backup-sync
chmod +x backup-sync.sh
./backup-sync.sh
✨ Features
- 🗄️ Full Stack Backup: Backs up website directories (
/var/www/html) and auto-detects MySQL, MariaDB, and PostgreSQL databases. - 🚀 Resume-Supported Transfers: Built on top of
rsyncover SSH (--partial --inplace) — if network drops, it resumes exactly where it stopped. - 🔒 Integrity Verification: Automatically calculates and exports
SHA256checksums for every backup archive. - 🔄 Direct Server-to-Server Migration: Push files directly from Source VPS to Destination VPS without downloading them to your home PC.
- ⏰ Automated Crontab with Auto-Prune: One-click setup for nightly backups with a built-in 7-day retention cleaner to prevent disk overflow.
🖥️ Interactive Menu Preview
================================================================================
📦 VPS Backup Sync v1.0.0 — Fast, Secure Backup & Server Migration Utility
🌐 Project Home: https://github.com/cash602-cmd/vps-backup-sync
📊 Benchmarks & Storage VPS Picks: https://vpsrankings.com
================================================================================
Please select an operation:
1) 📦 Local Full Backup (Files + Databases + SHA256)
2) 🚀 Live Server-to-Server Migration (Rsync over SSH)
3) 📥 Download Remote Backup to Local Machine
4) ⏰ Configure Automated Daily Backup (Cron + 7-Day Auto-Purge)
0) 🚪 Exit
Enter choice [0-4]:
🛠️ Step-by-Step Usage Guides
Scenario A: Moving to a New VPS (Site Migration)
When migrating from an old host to a faster VPS (e.g., from an entry-level instance to a high-speed CN2 GIA Optimized VPS):
- Run
./backup-sync.shon your Source Server. - Select option
2(Live Server-to-Server Migration). - Enter the Target VPS IP, SSH Port, and path.
- The script transfers all files with maximum bandwidth efficiency.
💡 Tip: Test your network latency before migrating with our free Global Speed & Latency Test Tool.
Scenario B: Automated Nightly Backups
- Select option
4(Configure Automated Daily Backup). - The script configures a silent background cron task running every morning at
03:30 AM. - Backups older than 7 days are automatically removed to protect your disk capacity.
📊 Recommended Backup Storage VPS
Need a secondary, low-cost server for off-site backups? We benchmark dozens of budget and storage VPS providers based on real-world disk I/O, price, and bandwidth:
| Provider | Starting Price | Best For | Dedicated Review & Benchmark |
|---|---|---|---|
| RackNerd | ~$1.49 / mo | Budget secondary backup storage | RackNerd VPS Review: Budget Value Pick |
| Hetzner Cloud | ~€3.49 / mo | Enterprise NVMe speed & snapshots | Hetzner VPS Review: European Cloud Benchmark |
| Hostinger | ~$4.99 / mo | Easy snapshots & automated backups | Hostinger VPS Review: Beginner-Friendly Cloud |
| Contabo | ~$5.50 / mo | Huge storage-per-dollar ratio | Contabo VPS Review: High-Storage Instance Analysis |
Compare full benchmark scores and discount coupons at VPS Rankings Deals.
🤝 Related Tools & Resources
- 🚀 vps-bench — One-line standardized VPS benchmark script (CPU, FIO, Network).
- 🏆 VPS Rankings Leaderboard — Real-world CPU single-core & multi-core rankings.
- ⚡ Network Latency & Route Detector — Ping and traceroute to global data centers.
- 🧮 VPS Hardware Calculator — Match required RAM, CPU, and disk to suitable plans.
📜 License
Released under the MIT License. Free for personal and commercial usage.
Maintained with ❤️ by Bob Tong & VPS Rankings