Skip to content

Gaia-Digital-Agency/vps_to_github_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Gaia Digital Agency - VPS to GitHub Backup System

This system automates the backup of WordPress site code from the Hostinger VPS to the Gaia-Digital-Agency GitHub Organization.

πŸ›  What the Script Does

  1. Scans /home: Iterates through all user directories.
  2. Filters Targets: Only processes directories containing a public_html folder.
  3. Skips Exceptions: Bypasses system folders (virtfs, lscache) and massive sites that cause timeouts (aperitif).
  4. Resets Git: Deletes existing .git folders to ensure a clean, "source of truth" push from the server to GitHub.
  5. Aggressive Ignoring: Uses a specialized .gitignore to skip:
    • Media/Images (wp-content/uploads/, img/)
    • Cache/Upgrades (wp-content/cache/)
    • Massive Logs (error_log)
    • Large Archives (.zip, .tar.gz, .sql)
  6. Auto-Repo Creation: Uses gh cli to automatically create private repositories if they don't exist.
  7. SSH Authentication: Uses the specific id_ed25519_gaia key for all transactions.

πŸš€ How to Run

To run the full backup of all standard sites:

/root/backup_to_github.sh

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages