Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

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

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages