Search by

cash602-cmd / vps-backup-sync

cash602-cmd

Zero-dependency VPS backup, rsync migration, and crontab automation utility for cloud hosting servers.

Package info

github.com/cash602-cmd/vps-backup-sync

Homepage

Language:Shell

pkg:composer/cash602-cmd/vps-backup-sync

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-11-13 06:27 UTC

This package is auto-updated.

Last update: 2026-11-13 06:28:05 UTC


README

License: MIT Bash Tested on Verified with

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 rsync over SSH (--partial --inplace) — if network drops, it resumes exactly where it stopped.
  • 🔒 Integrity Verification: Automatically calculates and exports SHA256 checksums 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):

  1. Run ./backup-sync.sh on your Source Server.
  2. Select option 2 (Live Server-to-Server Migration).
  3. Enter the Target VPS IP, SSH Port, and path.
  4. 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

  1. Select option 4 (Configure Automated Daily Backup).
  2. The script configures a silent background cron task running every morning at 03:30 AM.
  3. 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

📜 License

Released under the MIT License. Free for personal and commercial usage.

Maintained with ❤️ by Bob Tong & VPS Rankings