Skip to content

dev30na/mega-backup-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Auto Backup Script to MEGA with Discord Notifications

This script automatically creates a ZIP backup of /var/www/html, uploads it to your MEGA.nz account, and sends a status notification to a Discord channel using a webhook.

Perfect for securing website data on a remote Ubuntu server β€” safely, automatically, and quietly.


πŸš€ Features

  • πŸ“¦ Compresses /var/www/html into a date-stamped .zip file
  • ☁️ Uploads securely to your MEGA.nz cloud
  • πŸ“¬ Sends backup status (success/failure) to Discord via webhook
  • 🧹 Cleans up temporary files
  • πŸ” Works with cron for full automation

βš™οΈ Requirements

Before you begin, make sure your Ubuntu VPS has the following installed:

  • rclone (for Mega cloud upload)
  • zip (for compression)
  • curl (for Discord webhook)

πŸ› οΈ 1. Install Dependencies

sudo apt update
sudo apt install zip curl -y
curl https://rclone.org/install.sh | sudo bash

About

This project is designed to back up files to the Mega service and upload them.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages